项目作者: hojt

项目描述 :
Node.js-module for accessing Turf API (http://api.turfgame.com)
高级语言: JavaScript
项目地址: git://github.com/hojt/turfgame-api.git
创建时间: 2017-05-10T19:03:32Z
项目社区:https://github.com/hojt/turfgame-api

开源协议:MIT License

下载


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

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

Usage

  1. var TurfAPI = require('turfgame-api');
  2. var turf = new TurfAPI();
  3. turf.getStatistics(function(err, data) {
  4. if (err) {
  5. throw new Error("Failed to get statistics: " + err);
  6. }
  7. console.log("Got statistics: ", data);
  8. });

Debug

  1. DEBUG=turfgame-api node your-app.js

Inspiration