Class: URL

URL

new URL(address, location, parser)

The actual URL instance. Instead of returning an object we've opted-in to create an actual constructor as it's much more memory efficient and faster and it pleases my OCD.

Parameters:
Name Type Description
address String

URL we want to parse.

location Object | String

Location defaults for relative paths.

parser Boolean | function

Parser for the query string.

Source: