siren validator
Validate a Siren number
Options
Using with form field
Name | HTML attribute | Type | Description |
---|
message | data-fv-siren___message | String | The error message |
Using the ES6 module
import { siren } from '/vendors/@form-validation/cjs/validator-siren';
const result = siren().validate({
value: ...,
options: {
message: ...,
},
});
Using the npm package
- Install the validator package:
$ npm install @form-validation/validator-siren
import { siren } from '@form-validation/validator-siren';
const result = siren().validate({
value: ...,
options: {
message: ...,
},
});
See also
Changelog