Package-level declarations

Types

Link copied to clipboard
sealed external interface ParsedUrlQuery : Record<String, Any>
Link copied to clipboard
sealed external interface ParsedUrlQueryInput : Record<String, Any?>
Link copied to clipboard
sealed external interface ParseOptions
Link copied to clipboard
sealed external interface StringifyOptions

Functions

Link copied to clipboard
external fun escape(str: String): String

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.

Link copied to clipboard
external fun parse(str: String, sep: String = definedExternally, eq: String = definedExternally, options: ParseOptions = definedExternally): ParsedUrlQuery

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

Link copied to clipboard
external fun stringify(obj: ParsedUrlQueryInput = definedExternally, sep: String = definedExternally, eq: String = definedExternally, options: StringifyOptions = definedExternally): String

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

Link copied to clipboard
external fun unescape(str: String): String

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