Validating
Installation
Via npm:
npm install --save validating
or bower:
bower install --save validating
Usage
Create a function which can validate objects
var validating = ; var userDescriptors = name: rules: 'required' 'regexp' pattern: /^[A-Za-z][A-Za-z0-9]*$/ email: rules: name: 'email' name: 'required' ; var validateUser = validating; var result = ; console;console;
Running the tests
First, npm install
, then npm test
. Code coverage generated with npm run coverage
.
License
MIT, see LICENSE.md.