Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on Oct 1, 2023 via pnpm

qs 6.11.2

A querystring parser that supports nesting and arrays, with a depth limit
Package summary
Share
0
issues
2
licenses
8
MIT
1
BSD-3-Clause
Package created
4 Feb 2011
Version published
15 May 2023
Maintainers
2
Total versions
108
License
BSD-3-Clause

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
Packages
call-bind@1.0.2
function-bind@1.1.1
get-intrinsic@1.2.1
has-proto@1.0.1
has-symbols@1.0.3
has@1.0.3
object-inspect@1.12.3
side-channel@1.0.4

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
Packages
qs@6.11.2
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Dependencies

9
Get CSV
Name Version Size License Type Vulnerabilities
call-bind 1.0.2 5.24 kB MIT prod
function-bind 1.1.1 6.15 kB MIT prod
get-intrinsic 1.2.1 11.49 kB MIT prod
has-proto 1.0.1 3.3 kB MIT prod
has-symbols 1.0.3 6.9 kB MIT prod
has 1.0.3 1.52 kB MIT prod
object-inspect 1.12.3 25.31 kB MIT prod
qs 6.11.2 52 kB BSD-3-Clause prod
side-channel 1.0.4 5.51 kB MIT prod

Visualizations

Frequently Asked Questions

What does qs do?

"qs" is a powerful JavaScript library that provides solutions for parsing and stringifying URL query strings. It supports nesting and arrays with a customizable depth limit and provides added security features. The library is commonly used in Node.js and full-stack applications when handling request parameters and is known for transforming complex nested objects into URL-friendly formats.

How do you use qs?

To utilize the "qs" package in your JavaScript application, you first need to install it using npm package manager. This can be done by running the command npm install qs in your terminal. After that, you can import it into your file using var qs = require('qs');.

Here's an example of how to parse and stringify with "qs".

var qs = require('qs');
var assert = require('assert');

// Parse
var obj = qs.parse('a=c');
assert.deepEqual(obj, { a: 'c' });

// Stringify
var str = qs.stringify(obj);
assert.equal(str, 'a=c');

"qs" enables you to create nested objects within your query strings by surrounding the names of sub-keys with square brackets []. Check out an example below:

// Convert 'foo[bar]=baz' to {foo: {bar: 'baz'}}
assert.deepEqual(qs.parse('foo[bar]=baz'), {
    foo: { bar: 'baz' }
});

It also supports features like allowing the parsed value to be a null object, parsing URI encoded strings, and parsing objects up to a defined depth.

Where are the qs docs?

The qs documentation is readily available on the qs GitHub page. It provides comprehensive details on the usage, methods, and options the library offers. Whether you're parsing a complex object to a query string or creating one from a string, the documentation provides helpful examples and insights.