MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / hostOfUrl

Function hostOfUrl

packages/core/sdk/src/oauth-gc.ts:50–51  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

48};
49
50export const hostOfUrl = (value: string): string | null =>
51 parseUrl(value)?.host.toLowerCase() ?? null;
52
53/** The registrable domain of a hostname (eTLD+1), backed by the full Public
54 * Suffix List via `tldts` (so `api.foo.co.uk` → `foo.co.uk`, `x.co.in` →

Callers 1

dcrClientSlugFunction · 0.90

Calls 1

parseUrlFunction · 0.85

Tested by

no test coverage detected