1.0.10 • Published 5 years ago
simple-awesome-validator v1.0.10
Validator
This project is a work in progress. Features will be added as needed. If you need a new rule please make a pull request. If you have any suggestions please let me know. Thanks.
:gear: Installation
yarn add simple-awesome-validator:electric_plug: Dependencies
Check package.json file.
:memo: Documentation
import Validator from 'simple-awesome-validator'
Validator.numeric().positive().validate(-5) //false
Validator.numeric().positive().validate(10) //trueAutocomplete should help you see all validation rules. Documentation will be updated in short time.
Development
To start webpack dev server run
yarn startTo build the project run
yarn build:heavy_check_mark: Run tests
In project root directory run
yarn test:scroll: License
See the LICENSE file for license rights and limitations.