Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
query-str-es5
Advanced tools
Parse and stringify URL query strings with ease. 🚀
$ npm install --save query-str
const qs = require('query-str');
const myURL = 'http://foo.bar/buzz?myBool=true&myInt=2&myFloat=3.3&myString=fizz%20buzz';
qs.parse(myURL);
// => { myBool: true, myInt: 2, myFloat: 3.3, myString: 'fizz buzz' }
const qs = require('query-str');
const myURL = 'isOpenSource=true&isPassing=true&codacyScore=10.0';
qs.parse(myURL);
// => { isOpenSource: true, isPassing: true, codacyScore: 10.0 }
const qs = require('query-str');
const myURL = 'https://foo.bar/buzz';
const myParams = {
fin: false,
bazz: 22
};
qs.stringify(myParams, myURL);
// => 'https://foo.bar/buzz?fin=false&bazz=22'
const qs = require('query-str');
const myParams = {
myBool: false,
myInt: 6,
myFloat: 3.3,
myString: 'fin fun'
};
qs.stringify(myParams);
// => '?myBool=false&myInt=6&myFloat=3.3&myString=fin%20fun'
FAQs
A tool kit for parsing/generating query strings
We found that query-str-es5 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.