node-validate

0.0.3 • Public • Published

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']

Readme

Keywords

none

Package Sidebar

Install

npm i node-validate

Weekly Downloads

0

Version

0.0.3

License

MIT

Last publish

Collaborators

  • jedborovik