MCPcopy Index your code
hub / github.com/code-pushup/cli / addIndex

Function addIndex

packages/utils/src/lib/plugin-url-aggregation.ts:12–14  ·  view source on GitHub ↗
(slug: string, index: number)

Source from the content-addressed store, hash-verified

10}
11
12export function addIndex(slug: string, index: number): string {
13 return `${slug}-${index + 1}`;
14}
15
16export function removeIndex(slug: string): string {
17 return slug.replace(/-\d+$/, '');

Callers 7

expandOptionsForUrlsFunction · 0.90
runLighthouseForUrlFunction · 0.90
runForUrlFunction · 0.90
expandAuditsForUrlsFunction · 0.85
expandGroupsForUrlsFunction · 0.85
expandCategoryRefsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected