1.1.1 • Published 7 years ago

wowtoken v1.1.1

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

what's this?

It grabs the latest WoW Token prices from wowtoken.info for the region of your choice.

usage

The usual:

let wowtoken = require('wowtoken')

Then grab the price data, you can pass two arguments, a region and boolean for if the return should be formatted or not. (1234 or 1,234g) Valid regions are "NA", "EU", "TW", and "KR". Uses native promises or async/await.

let price = await wowtoken.getPrice("NA", true)
console.log(price) // 170,196g
price = await wowtoken.getPrice("NA", false)
console.log(price) // 170196

Try not to hammer the API too hard, the prices are not updated minute to minute. Pulling it every half hour is more than enough.