MCPcopy
hub / github.com/lissy93/web-check / baseDomain

Function baseDomain

api/whois.js:44–44  ·  view source on GitHub ↗
(host)

Source from the content-addressed store, hash-verified

42
43// Reduce a hostname to its registrable domain so registry WHOIS lookups succeed
44const baseDomain = (host) => psl.parse(host)?.domain || host;
45
46// Pull the formatted-name value out of an RDAP entity vCard
47const vcardFn = (vcard) => {

Callers 1

whoisHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected