Socket
Socket
Sign inDemoInstall

qs-middleware

Package Overview
Dependencies
1
Maintainers
4
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    qs-middleware

Connect querystring middleware


Version published
Weekly downloads
25K
decreased by-12.33%
Maintainers
4
Install size
124 kB
Created
Weekly downloads
 

Changelog

Source

1.0.3 (2017-03-08)

  • Replace jshint with xo.
  • Update devDependencies.
  • Update "author" field in package.json.

Readme

Source

QS Middleware

Connect querystring middleware.

NPM version Node.js version support Build status Dependencies LGPL-3.0 licensed

var connect = require('connect');
var query = require('qs-middleware');
var app = connect();
app.use(query());

Table Of Contents

Install

Install QS Middleware with npm:

npm install qs-middleware

Usage

query(options)

Create a querystring middleware which adds a parsed query property to the request object:

app.use(query());

app.use(function(request, response) {
    console.log(request.query);
});

You can optionally pass in options which are handed directly to the qs module, which handles querystring parsing:

app.use(query({
    allowDots: true
}));

Contributing

To contribute to QS Middleware, clone this repo locally and commit your code on a separate branch.

Please write unit tests for your code, and check that everything works by running the following before opening a pull-request:

make ci

License

QS Middleware is licensed under the Lesser General Public License (LGPL-3.0) license.
Copyright © 2016, Springer Nature

Keywords

FAQs

Last updated on 08 Mar 2017

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