Compatible with ES5+
$ npm install --save params-ew
try {
var userId = params.ensureType('integer', req, 'query', 'user_id');
} catch(err) {
…
}
$ npm install --only=dev
$ npm install mocha // or npm install -g mocha
$ npm test
- complete documentation
- complete tests