MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getJsonSize

Function getJsonSize

common/src/util/split-data.ts:16–22  ·  view source on GitHub ↗
(data: any)

Source from the content-addressed store, hash-verified

14}
15
16function getJsonSize(data: any): number {
17 if (data === undefined) {
18 return 'undefined'.length
19 }
20 const size = JSON.stringify(data).length
21 return size
22}
23
24function splitString(params: {
25 data: string

Callers 4

splitStringFunction · 0.85
splitObjectFunction · 0.85
splitArrayFunction · 0.85
splitDataWithLengthsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected