MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / parseJSONL

Function parseJSONL

source code/utils/json.ts:184–192  ·  view source on GitHub ↗
(data: string | Buffer)

Source from the content-addressed store, hash-verified

182 * falls back to indexOf-based scanning otherwise.
183 */
184export function parseJSONL<T>(data: string | Buffer): T[] {
185 if (bunJSONLParse) {
186 return parseJSONLBun<T>(data)
187 }
188 if (typeof data === 'string') {
189 return parseJSONLString<T>(data)
190 }
191 return parseJSONLBuffer<T>(data)
192}
193
194const MAX_JSONL_READ_BYTES = 100 * 1024 * 1024
195

Callers 4

loadTranscriptFileFunction · 0.90
getTranscriptStatsFunction · 0.90
createForkFunction · 0.90
readJSONLFileFunction · 0.85

Calls 3

parseJSONLBunFunction · 0.85
parseJSONLStringFunction · 0.85
parseJSONLBufferFunction · 0.85

Tested by

no test coverage detected