MCPcopy Index your code
hub / github.com/openai/codex-plugin-cc / readJsonFile

Function readJsonFile

plugins/codex/scripts/lib/fs.mjs:13–15  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

11}
12
13export function readJsonFile(filePath) {
14 return JSON.parse(fs.readFileSync(filePath, "utf8"));
15}
16
17export function writeJsonFile(filePath, value) {
18 fs.writeFileSync(filePath, `${JSON.stringify(value, null, 2)}\n`, "utf8");

Callers 2

readOutputSchemaFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected