Skip to main content

Module url

Module url 

Source
Expand description

Node url module: the WHATWG URL class (global + require('url').URL) and the legacy url.parse. A URL instance stores its components as data properties (so u.hostname reads directly) plus a @@native = "URL" tag for toString.

Constants§

MODULE_METHODS
SEARCH_PARAMS_METHODS
Method names dispatched through search_params_call (for instance_has_method wiring in stdlib::mod; @@iterator makes [...params] / for..of work).

Functions§

call
construct
new URL(input[, base]).
construct_search_params
new URLSearchParams([init]) — from a query string, an object, an iterable of [key, value] pairs, another URLSearchParams, or empty.
instance_call
URL instance methods (component reads are plain data properties).
search_params_call
URLSearchParams instance methods.