rs-client

1.0.0 • Public • Published

Build Status

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);
    
};

Readme

Keywords

Package Sidebar

Install

npm i rs-client

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • rutledgepaulv