express-query-boolean
Convert query strings to dates for express/connect applications.
Installation
npm install --save express-query-boolean
Getting Started
The module will recursively attempt to parse every property in req.query
.
Load it right after bodyParser
:
var boolParser = ; // [...] app;app;
Without
// ?a=true&b[c]=falseconsole;// => { a: 'true', b: { c: 'false' } }
With
// ?a=true&b[c]=falseconsole;// => { a: true, b: { c: false } }
License
Copyright (c) 2015 Marius Craciunoiu. Licensed under the MIT license.