Function getSubdomain

  • Extracts the subdomain from the host component of a URI.

    Parameters

    • url: URLInput

      A url components object.

    • tlds: string[] = KnownTlds

    Returns string

    The subdomain extracted from the host component.

Generated using TypeDoc