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

Function readLineCount

scripts/codex-live-verify.js:13–18  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

11const baselinePath = path.join(verificationDir, 'codex-live-baseline.json');
12
13function readLineCount(filePath) {
14 if (!fs.existsSync(filePath)) return 0;
15 const content = fs.readFileSync(filePath, 'utf8');
16 if (!content) return 0;
17 return content.split('\n').filter(Boolean).length;
18}
19
20function readSize(filePath) {
21 if (!fs.existsSync(filePath)) return 0;

Callers 1

snapshotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected