Skip to content

Instantly share code, notes, and snippets.

View pwinston's full-sized avatar

Philip Winston pwinston

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env node
var fs = require('fs');
var turf = require('@turf/turf');
function readFile(path) {
console.log("Reading:", path);
var data = fs.readFileSync(path);
return JSON.parse(data);
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env node
var fs = require('fs');
var turf = require('@turf/turf');
function readFile(path) {
console.log("Reading:", path);
var data = fs.readFileSync(path);
return JSON.parse(data);
}
#!/usr/bin/env node
var fs = require('fs');
var turf = require('@turf/turf');
function readFile(path) {
console.log("Reading:", path);
var data = fs.readFileSync(path);
return JSON.parse(data);
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.