1.0.0 • Published 5 years ago

osrs-hiscores-wrapper v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

OSRS Hiscores wrapper

Typical usage:

const Hiscores = require('osrs-hiscores-api')

Hiscores.getStats('name', 'gamemode').then(res => {
  const attack = res.getLevel('attack')
})

Account object:

Methods:

  • getLevel(skillname)
    • Parameters:
      • skillname (required): string
    • Return value: int
  • getCombatLevel(rounded)
    • Parameters:
      • rounded (optional): bool
    • Return value: int|string