Node module to access Turf API.
Implemented as an exercise in NodeJS coding. Review and feedback highly appreciated!
npm install https://github.com/hojt/turfgame-api --save
var TurfAPI = require('turfgame-api');
var turf = new TurfAPI();
turf.getStatistics(function(err, data) {
if (err) {
throw new Error("Failed to get statistics: " + err);
}
console.log("Got statistics: ", data);
});
DEBUG=turfgame-api node your-app.js