2.2.12 • Published 4 months ago

osrs-wrapper v2.2.12

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

Osrs-Wrapper

Simple wrapper around the Old School Runescape API

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, ... } }

Examples

See examples/

bun run examples/item.ts
bun run examples/hiscores.ts

License

osrs-wrapper is under the MIT license.

2.2.11

4 months ago

2.2.12

4 months ago

2.2.10

5 months ago

2.2.9

9 months ago

2.2.8

10 months ago

2.2.7

1 year ago

2.2.6

1 year ago

2.2.3

2 years ago

2.2.5

2 years ago

2.2.4

2 years ago

2.2.1

2 years ago

2.2.0

2 years ago

2.2.2

2 years ago

2.0.4

5 years ago

2.1.0

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.5

6 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

9 years ago

1.0.0

9 years ago