valittle
Tiny set of validation functions
Install:
via npm
yarn add valittle
via GitHub repository
yarn install
yarn build
API:
Function | Parameters |
---|---|
required | value: String |
min | value: String, length: Number |
max | value: String, length: Number |
regex | value: String, expression: RegExp |
valid | results: Array |
Usage:
const valittle = const password = 'p455w0rd'const required max min regex valid = valittleconst validation = const isValid = console
License
MIT © 2019, Rafal Golawski