GGBGG
Shorthand fo Guerilla Gamers bgg, this package offers wrappers and parsers of boardgame geek data.
use
Due to the nature of the javascript asynchronous getters, functios generally return promises to be handled on users part. Last results are cached and so can be collected after the call has finished
// getting terraforming mars datavar game = ggbgggetgame; // assigning to a variablevar game = null;ggbggget; //getting data from the cached responseggbggget;
Collections and plays
Issue with BGG is that it needs time to prepare the collecion before it can be downlaoded. So you end up calling the function multiple times. The default function tries three times with 3s separation, after that you need to call on your own.
var collection = bggget;out = null;collection;