Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Mar 12, 2024 via pnpm

qs 6.11.0

A querystring parser that supports nesting and arrays, with a depth limit
Package summary
Share
0
issues
2
licenses
14
MIT
1
BSD-3-Clause
Package created
4 Feb 2011
Version published
27 Jun 2022
Maintainers
2
Total deps
15
Direct deps
1
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
14 Packages, Including:
call-bind@1.0.7
define-data-property@1.1.4
es-define-property@1.0.0
es-errors@1.3.0
function-bind@1.1.2
get-intrinsic@1.2.4
gopd@1.0.1
has-property-descriptors@1.0.2
has-proto@1.0.3
has-symbols@1.0.3
hasown@2.0.2
object-inspect@1.13.1
set-function-length@1.2.2
side-channel@1.0.6

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
1 Packages, Including:
qs@6.11.0
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.

Direct Dependencies

1
All Dependencies CSV
β“˜ This is a list of qs 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
side-channel1.0.622.7 kBMIT
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.