MCPcopy Create free account
hub / github.com/cursor/plugins / truncate

Function truncate

orchestrate/skills/orchestrate/scripts/measurements.ts:389–391  ·  view source on GitHub ↗
(s: string, n: number)

Source from the content-addressed store, hash-verified

387}
388
389function truncate(s: string, n: number): string {
390 return s.length > n ? `${s.slice(0, n)}…` : s;
391}
392
393function errorMessage(err: unknown): string {
394 return err instanceof Error ? err.message : String(err);

Callers 1

runMeasurementCommandFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected