MCPcopy Create free account
hub / github.com/plotly/plotly.js / getJsonFile

Function getJsonFile

topojson/bin/process_geodata.mjs:25–32  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

23}
24
25function 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
34function createCountriesList(geojsonPath, outputPath) {
35 const geojson = getJsonFile(geojsonPath);

Callers 3

createCountriesListFunction · 0.85
addCentroidsToGeojsonFunction · 0.85
convertLayersToTopojsonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…