nodeonly-utilv is a npm for dev lib for node express utils
- base64
- json
- url
- prototype
var app = express();
// Make our db accessible to our router
app.use(function(req,res,next){
...
req.tools = require('./utils');
next();
});
app.post('/new', function(req, res) {
var name = req.tools.req.get_value_from_body(req, 'display_name');
...
}
npm test
- https://github.com/visionmedia/mocha
- https://github.com/chaijs/chai
- http://chaijs.com/
- http://visionmedia.github.io/mocha/
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
- v0.1.0 初始化版本
- 桑世龙
- 柯织
- 黄小龙
在issue提问或邮件[email protected]
this gem is released under the MIT License.