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

Function formatUrls

packages/plugin-axe/src/lib/binding.ts:141–146  ·  view source on GitHub ↗
([first, ...rest]: [string, ...string[]])

Source from the content-addressed store, hash-verified

139}
140
141function formatUrls([first, ...rest]: [string, ...string[]]): string {
142 if (rest.length === 0) {
143 return singleQuote(first);
144 }
145 return `[${[first, ...rest].map(singleQuote).join(', ')}]`;
146}

Callers 1

formatPluginCallFunction · 0.70

Calls 1

singleQuoteFunction · 0.90

Tested by

no test coverage detected