url library

url library

url library

Function

url standard library for URL encoding, decoding, parsing, query parameter reading and object building URLs.

API List

APIDescription
url.encodePercent-encode the URL component of the current text.
url.decodePercent decode the current text.
url.parseParse the current URL into an object.
url.queryRead the query parameter object of the current URL.
url.buildBuild a URL string from an object configuration.
url.to_stringReturns the original text of the current URL.

Examples

Notes

  • encode/decode handles URL component text; please use parse for complete URL parsing.