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

Function writeJson

core/loops/registry.js:35–38  ·  view source on GitHub ↗
(filePath, value)

Source from the content-addressed store, hash-verified

33}
34
35function writeJson(filePath, value) {
36 ensureDir(path.dirname(filePath));
37 fs.writeFileSync(filePath, `${JSON.stringify(value, null, 2)}\n`, 'utf8');
38}
39
40function registerLoop(projectRoot, contractOrOptions = {}, options = {}) {
41 const root = path.resolve(projectRoot || process.cwd());

Callers 3

registerLoopFunction · 0.70
updateLoopFunction · 0.70
appendLoopRunFunction · 0.70

Calls 1

ensureDirFunction · 0.70

Tested by

no test coverage detected