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

Function writeMapIndex

core/map/index.js:462–465  ·  view source on GitHub ↗
(index, outputPath)

Source from the content-addressed store, hash-verified

460}
461
462function writeMapIndex(index, outputPath) {
463 fs.mkdirSync(path.dirname(outputPath), { recursive: true });
464 fs.writeFileSync(outputPath, JSON.stringify(index, null, 2), 'utf8');
465}
466
467function loadMapIndex(outputPath) {
468 return JSON.parse(fs.readFileSync(outputPath, 'utf8'));

Callers 3

mainFunction · 0.85
test-deliver.jsFile · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected