MCPcopy Create free account
hub / github.com/code-pushup/cli / getUrlIdentifier

Function getUrlIdentifier

packages/utils/src/lib/plugin-url-config.ts:56–64  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

54}
55
56export function getUrlIdentifier(url: string): string {
57 try {
58 const { host, pathname } = new URL(url);
59 const path = pathname === '/' ? '' : pathname;
60 return `${host}${path}`;
61 } catch {
62 return url;
63 }
64}

Callers 3

expandAuditsForUrlsFunction · 0.85
expandGroupsForUrlsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected