sseemayer / NEOW

Node.js Eve Online API Wrapper (with Promises)
MIT License
19 stars 6 forks source link

NEOW

Build Status Build Status

Node.js EVE Online API Wrapper for the modern days - Promises, CoffeeScript, Tests, Caching, etc.

NEOW tries to be the best EVE Online and EVE-Central API wrapper available for Node.js. In contrast to hamster.js, NEOW can parse nested <rowset> elements such as found in the eve/SkillTree.xml.aspx API without returning garbled/partial results. It also includes support for parsing eve-central market data.

Features

Installation

npm install neow

Usage

JavaScript

neow = require('neow');

client = new neow.EveClient({
    keyID: '1234567',
    vCode: 'nyanyanyanyanyanyanyanyan'
});

client.fetch('account:Characters')
    .then(function(result){
        for(characterID in result.characters) {
            console.log(result.characters[characterID])
        }
    })
    .done().

CoffeeScript

neow = require 'neow'

client = new neow.EveClient
    keyID: '1234567'
    vCode: 'nyanyanyanyanyanyanyanyan'

client.fetch('account:Characters')
    .then (result) ->
        for characterID, character of result.characters
            console.log character
    .done()

License

MIT