base64 validator
Validate a base64 encoded string
Options
Using with form field
Name | HTML attribute | Type | Description |
---|
message | data-fv-base64___message | String | The error message |
Using the ES6 module
import { base64 } from '/path/to/@form-validation/cjs/validator-base64';
const result = base64().validate({
value: ...,
options: {
message: ...,
},
});
Using the npm package
- Install the validator package:
$ npm install @form-validation/validator-base64
- Use the
base64
validator:
import { base64 } from '@form-validation/validator-base64';
const result = base64().validate({
value: ...,
options: {
message: ...,
},
});
Changelog