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.
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.
The querystring.parse() method parses a URL query string (str) into a
collection of key and value pairs.
The querystring.stringify() method produces a URL query string from a
given obj by iterating through the object's "own properties".
The querystring.unescape() method performs decoding of URL percent-encoded
characters on the given str.
The node:querystring module provides utilities for parsing and formatting URL
query strings. It can be accessed using: