get-apex-domain (npm): Returns the apex domain (aka base, bare, naked, root apex, or zone apex domain) of the current web page without the use of a public suffix list. The apex domain is also the top-most domain that allows for setting cookies.
Keywords: apex|domain|base|naked|root|zone|hostname|url|cookie