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

Function readJson

scripts/dashboard.js:71–79  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

69 }
70}
71
72function readJson(filePath) {
73 const raw = readText(filePath);
74 if (!raw) return null;
75 try {
76 return JSON.parse(raw);
77 } catch {
78 return null;
79 }
80}
81
82function listFiles(dir, predicate = () => true) {

Callers 3

readHealthFunction · 0.70
installClaudeHooksFunction · 0.50

Calls 1

readTextFunction · 0.70

Tested by

no test coverage detected