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