lets-validate
v2.0.1
Published
Easy data validator for javascript
Downloads
6
Readme
Installation
npm i lets-validate
Usage
const validation=require('lets-validate')
validation('field_name','input_value',['validations'])
Example
validation('email','[email protected]',['required','isemail'])
validation('password','yourpassword',['required','min:5','max:8'])
Methods
- required
- isemail
- isnumber
- isstring
- min
- max