express validate.js:validate.js验证框架的中间件包装器
#Express validate.js验证框架的中间件包装器##安装$ npm install express-validate.js ##例子var validate = require ( 'express-validate.js' ) , express = require ( 'express' ) ; express ( ) . get ( '/user/:userId/:page?' , validate ( { userId : { scope : 'route' , presence : true , format : { pattern : / d { 5 } / , message : 'must be a five digit number' }
文件列表
express-validate_js-master.zip
(预估有个10文件)
express-validate.js-master
.jshintrc
483B
.gitignore
135B
package.json
2KB
LICENSE.md
1KB
.travis.yml
151B
.jshintignore
12B
README.md
3KB
lib
validate.js
3KB
暂无评论