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