ConstReadonlyfullPath: stringIncludes:
Readonlyhash: stringEverything after the hash (#), including the hash itself. If none exist, this will be an empty string.
Readonlyhost: stringIncludes:
Readonlyhostname: stringDomain, subdomains, and TLD (.com).
Readonlyhref: stringThe full url string.
Readonlyorigin: stringIncludes:
Readonlypassword: stringInfrequently used password part of a url.
Readonlypathname: stringEverything between origin and search/hash with a leading slash. If none exist, this will be
simply '/'.
Readonlypaths: string[]Each path part of the pathname.
Readonlyport: stringPort part of the URL. If none exist, this will be an empty string.
Readonlyprotocol: stringHttp, https, wss, etc.
Readonlysearch: stringEverything after a ?, excluding the hash, including ?, as a string. If none exist, this
will be an empty string.
ReadonlysearchParams: Record<string, string[]>An object representation of the parameters contained within the search string. If none exist, it will be an empty object.
Readonlyusername: stringInfrequently used username part of a url.
An example of empty
UrlPartsfor convenience's sake.