UNPKG

tldts

Version:

Library to work against complex domain names, subdomains and URIs.

6 lines (5 loc) 249 B
import { IPublicSuffix, ISuffixLookupOptions } from 'tldts-core'; /** * Check if `hostname` has a valid public suffix in the trie. */ export default function suffixLookup(hostname: string, options: ISuffixLookupOptions, out: IPublicSuffix): void;