MCPcopy
hub / github.com/codeaashu/claude-code / parseJSONL

Function parseJSONL

src/utils/json.ts:182–190  ·  view source on GitHub ↗
(data: string | Buffer)

Source from the content-addressed store, hash-verified

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

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