npm.io
1.0.10 • Published 6 years ago

simple-awesome-validator

Licence
MIT
Version
1.0.10
Deps
2
Size
357 kB
Vulns
0
Weekly
0

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.

Installation

yarn add simple-awesome-validator

Dependencies

Check package.json file.

Documentation
import Validator from 'simple-awesome-validator'

Validator.numeric().positive().validate(-5) //false
Validator.numeric().positive().validate(10) //true

Autocomplete should help you see all validation rules. Documentation will be updated in short time.

Development

To start webpack dev server run

yarn start

To build the project run

yarn build
Run tests

In project root directory run

yarn test
License

See the LICENSE file for license rights and limitations.