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

Function truncate

packages/utils/src/lib/errors.ts:8–9  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

6 format?: { oneline: boolean },
7): string {
8 const truncate = (text: string) =>
9 format?.oneline ? truncateMultilineText(text) : text;
10
11 if (error instanceof ZodError) {
12 const formattedError = z.prettifyError(error);

Callers 1

stringifyErrorFunction · 0.85

Calls 1

truncateMultilineTextFunction · 0.85

Tested by

no test coverage detected