Skip to main content

Module querystring

Module querystring 

Source
Expand description

Node querystring module, a port of lib/querystring.js: parse/stringify (and their decode/encode aliases, which are the same functions), escape, unescape and unescapeBuffer. The legacy application/x-www-form-urlencoded rules, with + standing for a space — distinct from the qs package express also ships.

parse is node’s single-pass scanner over UTF-16 code units, so multi-unit separators, a maxKeys budget that counts PAIRS (empty ones included), the “decode only if an escape was seen” rule and a custom decodeURIComponent all behave as in node.

Constants§

METHODS

Functions§

call