MCPcopy
hub / github.com/openai/codex-plugin-cc / writeJson

Function writeJson

tests/bump-version.test.mjs:12–15  ·  view source on GitHub ↗
(filePath, json)

Source from the content-addressed store, hash-verified

10const SCRIPT = path.join(ROOT, "scripts", "bump-version.mjs");
11
12function writeJson(filePath, json) {
13 fs.mkdirSync(path.dirname(filePath), { recursive: true });
14 fs.writeFileSync(filePath, `${JSON.stringify(json, null, 2)}\n`);
15}
16
17function readJson(filePath) {
18 return JSON.parse(fs.readFileSync(filePath, "utf8"));

Callers 2

makeVersionFixtureFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected