Skip to content

ezeeworld/npm-params-ew

Repository files navigation

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

About

NPM module : parameters handling

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published