deriveDomain
Unpublished development API. This package is under development and is not available as a published release.
Extract a hostname with leading www. removed; null for missing/invalid URLs, empty for hostless URLs. This does not approve navigation.
import { deriveDomain } from '@threadplane/content/messages';Declaration · overload 1
export declare function deriveDomain(url?: string): string | null;Parameters
url· optionalstring
Returns
string | null