rs-client
v1.0.0
Published
Runescape client with caching
Downloads
4
Readme
rs-client
A simple runescape api client with built-in caching.
Installation
npm install --save rs-client
Usage
const api = require('rs-client');
const expect = require('chai').expect;
var exchange = new api.GrandExchange();
var ammoCategory = 1;
exchange.getAllItemsForSearchTermsInCategories(['rune'], [ammoCategory]).then(function(results) {
var expected = [ "Rune brutal", "Rune dart", "Rune javelin", "Rune knife", "Rune throwing axe" ];
var items = results.map(result => result.name);
expect(items).to.deep.equal(expected);
};