a validate lib for nodejs
JavaScript
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
.npmignore
.travis.yml
LICENSE
README.md
doc.md
index.js
package.json

README.md

s-validater

Build Status

a validate lib for nodejs

feature

  • type checking: boolean, string, date, number, array, or plain object
  • validation full result: error, errorFilds, effective data collection
  • custom validation function
  • string length(min, max), number(min, max), RegExp check
  • post value filter
  • async validate function support

install

npm install s-validater --save

how to use

doc

read more example from test/test.js

test

$ git clone https://github.com/zxdong262/s-validater.git
$ cd s-validater
$ npm install
$ npm install mocha -g
$ mocha