New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bnet

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bnet

"A Node JS wrapper for the Battle.net API"

1.2.0
latest
Source
npm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

battlenet

A wrapper for the Battle.net API written in Node JS

Install

npm install bnet

Usage

Each resource allows you to pass in an object with various parameters. For example, here is how you could get a character's profile along with the guild and stats query string parameters:

var bnet = require("bnet");

var char = {
  region: "us",
  name: "Uther",
  realm: "Medivh",
  fields: ["guild", "stats"] 
};

bnet.character(char, function(c) {
  console.log("Hello there " + c.name);  // returns "Hello there Uther"
});

All requests are returned in JSON format, allowing you to easily work with the data collections.

More examples

See the examples directory.

FAQs

Package last updated on 07 May 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts