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

Function readJson

scripts/telemetry-stats.js:40–43  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

38}
39
40function readJson(file) {
41 if (!fs.existsSync(file)) return null;
42 try { return JSON.parse(fs.readFileSync(file, 'utf8')); } catch { return null; }
43}
44
45function listFiles(dir, ext) {
46 if (!fs.existsSync(dir)) return [];

Callers 1

readHooksStatsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected