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

Function loadMapIndex

core/map/index.js:467–469  ·  view source on GitHub ↗
(outputPath)

Source from the content-addressed store, hash-verified

465}
466
467function loadMapIndex(outputPath) {
468 return JSON.parse(fs.readFileSync(outputPath, 'utf8'));
469}
470
471function isMapIndexFresh(outputPath, maxAgeMs = DEFAULT_CACHE_MAX_AGE_MS) {
472 if (!fs.existsSync(outputPath)) return false;

Callers 3

readMapSliceFunction · 0.85
loadRequiredIndexFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected