New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

qsp

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qsp

Parse and stringify URL query strings

latest
Source
npmnpm
Version
0.3.0
Version published
Weekly downloads
24
166.67%
Maintainers
1
Weekly downloads
 
Created
Source

Parse and stringify URL and other query strings

qsp

query string params

Installation

NPM

npm install --save qsp

Usage

const qsp = require('qsp');

qsp.stringify({key1: 'val1', key2: 'val2'});
//=> 'key1=val1&key2=val2'

// stringify nested attributes
qsp.stringify({key: {nested: [1,2,3,4], doubleNested: {dnKey: 'val'}}, anotherKey: 'simpleVal'});
//=> key[nested][]=1&key[nested][]=2&key[nested][]=3&key[nested][]=4&key[doubleNested][dnKey]=val&anotherKey=simpleVal

qsp.parse('key1=val1&key2=val2')
//=> {key1: 'val1', key2: 'val2'}

Keywords

query string params

FAQs

Package last updated on 09 Feb 2018

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