kinetex - v1.0.0-rc.1
    Preparing search index...

    Function getRegistrableDomain

    • Get the registrable domain (aka effective TLD + 1 label) for a hostname. Returns null for bare TLDs or invalid input. For IP addresses, returns the IP itself.

      Parameters

      • hostname: string

      Returns string | null