interface ParsedHost

Result of parsing a hostname.

Properties

hostname: string | null

The normalized hostname, or null if invalid

isIp: boolean

Whether the hostname is an IP address

publicSuffix: string | null

The public suffix (TLD) of the hostname

domain: string | null

The domain (registrable domain)

Usage

import { type ParsedHost } from ".";