osrs-wrapper
TypeScript icon, indicating that this package has built-in type declarations

2.2.9 • Public • Published

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.

Package Sidebar

Install

npm i osrs-wrapper

Weekly Downloads

12

Version

2.2.9

License

MIT

Unpacked Size

25.1 kB

Total Files

16

Last publish

Collaborators

  • atjeff