mazey
    Preparing search index...

    Function getUrlPath

    • Get the path of the URL.

      Usage:

      import { getUrlPath } from "mazey";

      const ret = getUrlPath("https://example.com/path/to/page");
      console.log(ret);

      Output:

      /path/to/page
      

      Parameters

      • url: string

        The URL to get the path from.

      Returns string

      The path of the URL.