2.2.7 • Published 2 months ago

osrs-wrapper v2.2.7

Weekly downloads
5
License
MIT
Repository
github
Last release
2 months ago

Osrs-Wrapper

Simple wrapper around the Old School Runescape API

Dependencies

Installation

$ npm install --save osrs-wrapper

Usage

This wrapper interacts with the following Old-School APIs:

  • Hiscores
  • Grand Exchange

Api Reference

getHiscores

import { getHiscores } from 'osrs-wrapper';

const stats = await getHiscores('Bald')
// { Overall: { rank: '94441', level: '1969', xp: '93090113' }, Attack: { rank: '226496', level: '91', xp: '6226771' } ... }

getExchangeStats

import { getExchangeStats } from 'osrs-wrapper';

const itemStats = await getExchangeStats(4151);
// { id: 4151, name: 'Abyssal whip', description: 'A weapon from the abyss.', current: {  trend: 'neutral', price: '2.7m' } ... }

getExchangeTrendGraph

import { getExchangeTrendGraph } from 'osrs-wrapper';

const itemGraph = await getExchangeTrendGraph(4151);
// { daily: { '1564099200000': 2534129, ... } average: { '1564099200000': 2564308, ... } }

License

osrs-wrapper is under the MIT license.

2.2.7

2 months ago

2.2.6

4 months ago

2.2.3

11 months ago

2.2.5

9 months ago

2.2.4

9 months ago

2.2.1

1 year ago

2.2.0

1 year ago

2.2.2

1 year ago

2.0.4

4 years ago

2.1.0

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.5

5 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago