MCPcopy Create free account
hub / github.com/anus-dev/ANUS / readJson

Function readJson

scripts/version.js:19–21  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

17}
18
19function readJson(filePath) {
20 return JSON.parse(readFileSync(filePath, 'utf-8'));
21}
22
23function writeJson(filePath, data) {
24 writeFileSync(filePath, JSON.stringify(data, null, 2) + '\n');

Callers 1

version.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected