check
Expressjs data validation middleware.
API
var bodyParser = check = rule = checkrule ; var app = ; // always use bodyParser before check middlewareapp;app;
check(dataSource, rule[, rule])
dataSource
could be either body
, query
or params
.
Following a list of rule
created by check.rule()
check.rule(field)
field
is the field name that being validate.
License
MIT