Index - Node documentation

Usage in Deno

import * as mod from "node:querystring";

The node:querystring module provides utilities for parsing and formatting URL query strings. It can be accessed using:

const querystring = require('node:querystring');

querystring is more performant than URLSearchParams but is not a standardized API. Use URLSearchParams when performance is not critical or when compatibility with browser code is desirable.

Functions

f
escape

The querystring.escape() method performs URL percent-encoding on the givenstr in a manner that is optimized for the specific requirements of URL query strings.

f
parse

The querystring.parse() method parses a URL query string (str) into a collection of key and value pairs.

f
stringify

The querystring.stringify() method produces a URL query string from a given obj by iterating through the object's "own properties".

f
unescape

The querystring.unescape() method performs decoding of URL percent-encoded characters on the given str.

Interfaces

I
ParsedUrlQuery
No documentation available
I
ParsedUrlQueryInput
No documentation available
I
ParseOptions
No documentation available
I
StringifyOptions

The node:querystring module provides utilities for parsing and formatting URL query strings. It can be accessed using:

Variables

v
decode

The querystring.decode() function is an alias for querystring.parse().

v
encode

The querystring.encode() function is an alias for querystring.stringify().