Function setSubdomain

  • set the subdomain of a URI.

    Parameters

    • url: URLInput

      A given URI components object or URI string

    • subdomain: string

      The new subdomain to set

    • tlds: string[] = KnownTlds

      The list of known top-level domains

    Returns URL

    the input URI with the subdomain set to the given value

Generated using TypeDoc