Function getDomainName

  • get the domain name from host name www.51shihuimiao.com => 51shihuimiao.com

    Parameters

    • hostname: string
    • levels: number = 2

      default 2 levels, e.g. xxx.com, xxx.org

    Returns string

Generated using TypeDoc