0.11.0 • Published 6 years ago
cerberus-validator v0.11.0
Cerberus
Javascript validations made easy.
Vision
Unlike other validation packages the vision of this package is to reduce the number of lines written for validations and other information to be retrieved from data.
Requirements
Cerebrus runs on bare NodeJS(v6.0) or later. Cerebrus tests configured to run on Nodejs v6.0 - v12.0.
Check travis CI build for test runs.
Installation
Install this package using npm i cerberus-validator.
The library can also be installed through bower
bower install cerberus-validator
Testing
Cereberus uses assert library from NodeJS and use mocha for test runners.
For running tests install mocha by using npm i mocha -g and run mocha from root of the project.
TODO
- Move to
Promisebased library.
Using it on your browser
You can use cerberus in your browser by simply importing it.
<script src="bundle/main.js"></script>Examples
View examples in example.md