You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

bgg

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bgg

BoardGameGeek.com API client

1.0.1
latest
Source
npmnpm
Version published
Weekly downloads
23
35.29%
Maintainers
1
Weekly downloads
 
Created
Source

BGG

A promises aware boardgamegeek.com API client.

Will support any of the commands available in the BGG XMLAPI2 documentation

install

npm install bgg

Usage

// all options are optional
var options = {
  timeout: 10000, // timeout of 10s (5s is the default)

  // see https://github.com/cujojs/rest/blob/master/docs/interceptors.md#module-rest/interceptor/retry
  retry: {
    initial: 100,
    multiplier: 2,
    max: 15e3
  }
}

var bgg = require('bgg')(options);

bgg('user', {name: 'monteslu', guilds: 1})
  .then(function(results){
    console.log(results);
  });

Keywords

boardgamegeek

FAQs

Package last updated on 29 Dec 2016

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