Parse a URL into its component parts.
Returns an object containing only the fields present in the URL. The queryItems field is an array of {name, value} objects from the query string.
queryItems
{name, value}
The URL string to parse.
An object with any of the fields: scheme, host, port, user, password, path, query, fragment, queryItems. Returns null if the URL is unparseable.
scheme
host
port
user
password
path
query
fragment
null
Parse a URL into its component parts.
Returns an object containing only the fields present in the URL. The
queryItemsfield is an array of{name, value}objects from the query string.