2.1.1 • Published 10 years ago

params-ew v2.1.1

Weekly downloads
2
License
ISC
Repository
github
Last release
10 years ago

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
2.1.1

10 years ago

2.1.0

10 years ago

2.0.0

10 years ago

1.0.8

10 years ago

1.0.6

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago