MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / truncate

Function truncate

packages/integration-kit/src/properties.ts:1–3  ·  view source on GitHub ↗
(str: string, maxLength: number)

Source from the content-addressed store, hash-verified

1export function truncate(str: string, maxLength: number) {
2 return str.length > maxLength ? str.slice(0, maxLength - 1) + "…" : str;
3}

Callers 2

createMethod · 0.90
index.tsFile · 0.90

Calls 1

sliceMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…