Skip to content

monteslu/bgg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
  });

alternatives

checkout bgg-sdk by ColCross

About

boardgamegeek API client for Node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •