fix: module import
This commit is contained in:
@@ -2,7 +2,7 @@ const fs = require('fs');
|
||||
const proj4 = require('proj4');
|
||||
const inside = require('point-in-geopolygon');
|
||||
|
||||
const geojsonWorld = JSON.parse(fs.readFileSync('./countries.geo.json', { encoding: 'utf8' }));
|
||||
const geojsonWorld = JSON.parse(fs.readFileSync(__dirname + '/countries.geo.json', { encoding: 'utf8' }));
|
||||
const geojsonByCountry = geojsonWorld.features.reduce((countries, feature) => {
|
||||
countries[feature.id] = feature;
|
||||
return countries;
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "dotted-map-generator",
|
||||
"name": "dotted-map",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
|
||||
Reference in New Issue
Block a user