Get the host of the URL.
Usage:
import { getUrlHost } from "mazey";const ret = getUrlHost("https://example.com/path/to/page");console.log(ret); Copy
import { getUrlHost } from "mazey";const ret = getUrlHost("https://example.com/path/to/page");console.log(ret);
Output:
example.com Copy
example.com
The URL to get the host from.
The host of the URL.
Get the host of the URL.
Usage:
Output: