mazey
    Preparing search index...

    Function getUrlHost

    • Get the host of the URL.

      Usage:

      import { getUrlHost } from "mazey";

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

      Output:

      example.com
      

      Parameters

      • url: string

        The URL to get the host from.

      Returns string

      The host of the URL.