šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

fastify-qs

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastify-qs

Fastify plugin for querystring parsing with qs

2.0.0
Source
npm
Version published
Weekly downloads
10K
57.58%
Maintainers
1
Weekly downloads
Ā 
Created
Source

fastify-qs

Build Status GitHub issues GitHub license npm

A plugin for Fastify that adds support for parsing URL query parameters with qs.

Plugin accepts any options from qs.parse method

Install

npm i fastify-qs

Example

const fastify = require('fastify')()

fastify.register(require('fastify-qs'), {})

fastify.get('/*', (req, reply) => {
  req.query // -> { a: ['1', '2'] }
  reply.send('')
})

// GET: 'http://127.0.0.1/?a[]=1&a[]=2

If you want temporary disable qs parsing, pass disabled: true to plugin options:

fastify.register(require('fastify-qs'), { disabled: true })

License

MIT Ā© Vano Devium

Keywords

fastify

FAQs

Package last updated on 08 Jul 2020

Did you know?

Socket

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