### Running OSRS Wrapper Item Example (Bun) Source: https://github.com/atjeff/osrs-wrapper/blob/master/README.md Command to execute the item example script located in the 'examples' directory using the Bun runtime. ```bash bun run examples/item.ts ``` -------------------------------- ### Running OSRS Wrapper Hiscores Example (Bun) Source: https://github.com/atjeff/osrs-wrapper/blob/master/README.md Command to execute the hiscores example script located in the 'examples' directory using the Bun runtime. ```bash bun run examples/hiscores.ts ``` -------------------------------- ### Installing osrs-wrapper via npm Source: https://github.com/atjeff/osrs-wrapper/blob/master/README.md Installs the osrs-wrapper library as a project dependency using npm. ```bash npm install --save osrs-wrapper ``` -------------------------------- ### Fetching OSRS Grand Exchange Item Stats (TypeScript) Source: https://github.com/atjeff/osrs-wrapper/blob/master/README.md Shows how to use the getExchangeStats function to get current statistics for a specific item from the Old School Runescape Grand Exchange API, using the item ID. ```typescript 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' } ... } ``` -------------------------------- ### Fetching OSRS Grand Exchange Item Trend Graph (TypeScript) Source: https://github.com/atjeff/osrs-wrapper/blob/master/README.md Illustrates the usage of the getExchangeTrendGraph function to retrieve historical price trend data for an item from the Old School Runescape Grand Exchange API. ```typescript import { getExchangeTrendGraph } from 'osrs-wrapper'; const itemGraph = await getExchangeTrendGraph(4151); // { daily: { '1564099200000': 2534129, ... } average: { '1564099200000': 2564308, ... } } ``` -------------------------------- ### Fetching OSRS Hiscores with osrs-wrapper (TypeScript) Source: https://github.com/atjeff/osrs-wrapper/blob/master/README.md Demonstrates how to use the getHiscores function to retrieve player stats from the Old School Runescape Hiscores API. It imports the function and calls it with a player name. ```typescript import { getHiscores } from 'osrs-wrapper'; const stats = await getHiscores('Bald') // { Overall: { rank: '94441', level: '1969', xp: '93090113' }, Attack: { rank: '226496', level: '91', xp: '6226771' } ... } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.