The URL string to parse.
The parts of the URL, with only the fields present in it, or null if the URL is unparseable.
Optionalfragment?: stringThe fragment, without the #
Optionalhost?: stringOptionalpassword?: stringThe path, which may be empty
Optionalport?: numberOptionalquery?: stringThe query string, without the ?
OptionalqueryItems?: { name: string; value: string }[]The items of the query string
Optionalscheme?: stringe.g. "https"
Optionaluser?: string
Parse a URL into its component parts.