Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

hojt/turfgame-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

turfgame-api

Build Status NPM version Downloads

Node module to access Turf API.

Implemented as an exercise in NodeJS coding. Review and feedback highly appreciated!

Installation

npm install https://github.com/hojt/turfgame-api --save

Usage

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

DEBUG=turfgame-api node your-app.js

Inspiration