Node.js module
querystring
The 'node:querystring' module provides utilities for parsing and formatting URL query strings. It includes parse and stringify methods.
Fully supported in Bun
Fully implemented. 100% of Node.js's test suite passes.
Functions 4
- querystring.escape()
The
querystring.escape()method performs URL percent-encoding on the givenstrin a manner that is optimized for the specific requirements of URL query strings. - querystring.parse()
The
querystring.parse()method parses a URL query string (str) into a collection of key and value pairs. - querystring.stringify()
The
querystring.stringify()method produces a URL query string from a givenobjby iterating through the object's "own properties". - querystring.unescape()
The
querystring.unescape()method performs decoding of URL percent-encoded characters on the givenstr.
Interfaces 4
Variables 2
- const querystring.decode
The querystring.decode() function is an alias for querystring.parse().
- const querystring.encode
The querystring.encode() function is an alias for querystring.stringify().