The querystring.escape() method performs URL percent-encoding on the given str in a manner that is optimized for the specific requirements of URL query strings.
The querystring.escape() method performs URL percent-encoding on the given str in a manner that is optimized for the specific requirements of URL query strings.
The querystring.escape() method is used by querystring.stringify() and is generally not expected to be used directly. It is exported primarily to allow application code to provide a replacement percent-encoding implementation if necessary by assigning querystring.escape to an alternative function.
the given string to escape
The querystring.parse() method parses a URL query string (str) into a collection of key and value pairs.
The querystring.parse() method parses a URL query string (str) into a collection of key and value pairs.
The URL query string to parse
The substring used to delimit key and value pairs in the query string. Defaults to '&'.
The substring used to delimit keys and values in the query string. Defaults to '='.
The given options
a mapping of the key-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.stringify() method produces a URL query string from a given obj by iterating through the object's "own properties".
The object to serialize into a URL query string
The substring used to delimit key and value pairs in the query string. Defaults to '&'.
The substring used to delimit keys and values in the query string. Defaults to '='.
The given options
The querystring.unescape() method performs decoding of URL percent-encoded characters on the given str.
The querystring.unescape() method performs decoding of URL percent-encoded characters on the given str.
The querystring.unescape() method is used by querystring.parse() and is generally not expected to be used directly. It is exported primarily to allow application code to provide a replacement decoding implementation if necessary by assigning querystring.unescape to an alternative function.
By default, the querystring.unescape() method will attempt to use the JavaScript built-in decodeURIComponent() method to decode. If that fails, a safer equivalent that does not throw on malformed URLs will be used.
the given string to unescape
Query String Type Definition