MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / readJsonOrNull

Function readJsonOrNull

src/tools/frontend/detect-stack.ts:39–41  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

37});
38
39async function readJsonOrNull(filePath: string): Promise<any> {
40 try { return JSON.parse(await fs.readFile(filePath, 'utf-8')); } catch { return null; }
41}
42
43async function exists(p: string): Promise<boolean> {
44 try { await fs.access(p); return true; } catch { return false; }

Callers 1

executeMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected