node-validate
v0.0.3
Published
node-validate =============
Downloads
2
Readme
node-validate
Heavily inspired by (stolen from) validator and express-validator.
Installation
$ npm install node-validate
Usage
var v = validate().isEmail('foo', 'Must provide valid email').isLength('bar', 6, 'Password must be at least six letter');
console.log(v.errors);
//=> ['Must provide valid email', 'Password must be at least six letters']