Package that parses and transforms Old School Runescape Hiscore API results into a JSON object.
The purpose of this package is to parse and transform Old School Runescape Hiscore API results and return it as a JSON object.
Written entirely in TypeScript, it contains it's own type declarations.
``shell`
yarn add osrs-hiscores-parser$3
`shell`
npm install osrs-hiscores-parser
typescript
import { parser } from 'osrs-hiscores-parser'(async function example() {
const json = await parser(['echogim', 'lynx titan']);
console.log(...json)
})()
`$3
`tsx
import { parser } from 'osrs-hiscores-parser'const [json, setJson] = React.useState();
useEffect(() => {
(async () => {
!json && setJson(await parser(['echogim', 'emerald12']))
})()
console.log(json)
}, [json])
``