method TldUtils.getDomain
TldUtils.getDomain(hostname: string): string | null

Gets the registrable domain (domain + public suffix).

Parameters

hostname: string

Return Type

string | null

Usage

import { TldUtils } from ".";