2.1.1 • Published 10 years ago
params-ew v2.1.1
URL parameter handling and type conversion
Installation
Compatible with ES5+
$ npm install --save params-ewUsage
try {
var userId = params.ensureType('integer', req, 'query', 'user_id');
} catch(err) {
…
}Running tests
$ npm install --only=dev
$ npm install mocha // or npm install -g mocha
$ npm testTODO
- complete documentation
- complete tests