params-ew
v2.1.1
Published
URL parameter handling and type conversion
Downloads
1
Readme
URL parameter handling and type conversion
Installation
Compatible with ES5+
$ npm install --save params-ew
Usage
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 test
TODO
- complete documentation
- complete tests