Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including wow-realm-status with all npm packages installed. Try it out:

var wowRealmStatus = require("wow-realm-status")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

wow-realm-status v1.0.6

Fetch information about World of Warcraft realms

wow-realm-status

NPM Build Status Maintainability XO code style

Easily fetch info about the World of Warcraft realms.

Install

npm install wow-realm-status

Usage

const {fetchRealm} = require('wow-realm-status');

fetchRealm('us', 'ragnaros')
    .then(realm => console.log(realm));
//=> {
//  name: 'Ragnaros',
//  slug: 'ragnaros',
//  locale: 'es-MX',
//  timezone: 'CDT',
//  online: true,
//  type: 'normal',
//  population: 'full'
//}

fetchRealm(region, realm[, classic])

Returns a JSON object containing the realm data.

region

Type: string

realm

Type: string

classic

Type: boolean
Default: false

fetchRealms(region[, classic])

Returns an array of JSON objects with the realms for that region.

region

Type: string

classic

Type: boolean
Default: false

Realm data

Each realm is represented as a JSON object with the following properties:

name

Type: string

slug

Type: string

locale

Type: string

Locale of the realm, formatted as a IETF BCP 47 language tag.

timezone

Type: string

online

Type: boolean

type

Type: string

Possible values are: normal, pvp, rp, rppvp.

population

Type: string

Current population of the realm.
Possible values are: very-low, low, medium, high, full

Contributing

Contributions are always welcome! Please run npm test before hand to ensure everything is ok.

Support

If you use this package please consider starring it :)

Related

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free