publicsuffixlist

A JavaScript domain name parser for the validation of domain names and top level domains, driven by TLDs data from Mozilla's publicsuffixlist.org.

get-etld

Returns the effective top-level domain (eTLD) of the current web page without the use of a public suffix list.