Socket
Socket
Sign inDemoInstall

express-query-boolean

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    express-query-boolean

Convert query strings to dates for express/connect applications.


Version published
Maintainers
1
Install size
8.51 kB
Created

Readme

Source

express-query-boolean

Convert query strings to dates for express/connect applications.

npm build status

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 = require('express-query-boolean');

// [...]

app.use(bodyParser.json());
app.use(boolParser());
Without
// ?a=true&b[c]=false
console.log(req.query);
// => { a: 'true', b: { c: 'false' } }
With
// ?a=true&b[c]=false
console.log(req.query);
// => { a: true, b: { c: false } }

License

Copyright (c) 2015 Marius Craciunoiu. Licensed under the MIT license.

Keywords

FAQs

Last updated on 21 Feb 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc