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