(filename)
| 23 | } |
| 24 | |
| 25 | function getJsonFile(filename) { |
| 26 | try { |
| 27 | return JSON.parse(fs.readFileSync(filename, 'utf8')); |
| 28 | } catch (err) { |
| 29 | console.error(`❌ Failed to load JSON input file '${filename}':`, err.message); |
| 30 | process.exit(1); |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | function createCountriesList(geojsonPath, outputPath) { |
| 35 | const geojson = getJsonFile(geojsonPath); |
no outgoing calls
no test coverage detected
searching dependent graphs…