Vinyl
    Preparing search index...

    Function getHostname

    • Extracts the hostname from an absolute URL string.

      Parameters

      • url: string

        An absolute URL string (e.g. https://example.com:8080/path).

      Returns string

      The hostname (e.g. example.com).