/**
* getHost returns the host from a given URL. For example, `"https://example.com"` would return `"example.com"`
*
* @param str A URL string
* @returns The URL's host
*/
export defaultfunctiongetHost(str: string): string{
constu = newURL(str);
return u.hostname;
}