MCPcopy Create free account
hub / github.com/SethGammon/Citadel / readJsonl

Function readJsonl

scripts/test-doc-sync.js:22–27  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

20}
21
22function readJsonl(filePath) {
23 return fs.readFileSync(filePath, 'utf8')
24 .split(/\r?\n/)
25 .filter(Boolean)
26 .map(line => JSON.parse(line));
27}
28
29function withTempProject(run) {
30 const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'citadel-doc-sync-'));

Callers 1

test-doc-sync.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected