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