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

Function countJsonlLines

scripts/integration-test.js:166–170  ·  view source on GitHub ↗
(sandbox, relPath)

Source from the content-addressed store, hash-verified

164
165// ── Telemetry helpers ──────────────────────────────────────────────────────────
166
167function countJsonlLines(sandbox, relPath) {
168 const full = path.join(sandbox, relPath);
169 if (!fs.existsSync(full)) return 0;
170 return fs.readFileSync(full, 'utf8').split('\n').filter(Boolean).length;
171}
172
173// ── Campaign helpers ───────────────────────────────────────────────────────────

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected