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:
import querystring from '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.
The querystring.escape()
method performs URL percent-encoding on the given str
in a manner that is optimized for the specific requirements of URLquery strings.
The querystring.parse()
method parses a URL query string (str
) into acollection of key and value pairs.
The querystring.stringify()
method produces a URL query string from agiven obj
by iterating through the object's "own properties".
The querystring.unescape()
method performs decoding of URL percent-encodedcharacters on the given str
.
The node:querystring
module provides utilities for parsing and formatting URLquery strings. It can be accessed using: