MCPcopy Create free account
hub / github.com/TanStack/cli / truncateValue

Function truncateValue

packages/cli/src/telemetry.ts:61–65  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

59}
60
61function truncateValue(value: string) {
62 return value.length > TELEMETRY_VALUE_MAX_LENGTH
63 ? `${value.slice(0, TELEMETRY_VALUE_MAX_LENGTH - 1)}…`
64 : value
65}
66
67function normalizeParamKey(key: string) {
68 const normalized = key.replace(/[^a-zA-Z0-9_]/g, '_').replace(/^_+/, '')

Callers 1

normalizeParamValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected