1.2.7 • Published 1 year ago
bgg-wrapper v1.2.7
BGG Wrapper
This is the repository for the npm package bgg-wrapper. The purpose of this package is to wrap board game geek's api in order to improve the developer experience. The benefits of this wrapper:
- It converts the XML format to JSON for usability.
- It handles retry logic for things like fetching collections when you have to make multiple calls.
- It utilizes typescript to provide typing for both endpoint parameters and thier returned JSON.
Installation
npm i bgg-wrapper or yarn add bgg-wrapper
Usage
import bggApi from "bgg-wrapper";
const bgg = new bggApi();
const foo = async () => {
const ticketToRideData = await bgg.thing("9209");
console.log(ticketToRideData.items[0].name); // Ticket to Ride
}
foo();1.2.7
1 year ago
1.2.6
1 year ago
1.2.5
1 year ago
1.2.4
1 year ago
1.2.3
1 year ago
1.2.2
2 years ago
1.2.0
2 years ago
1.2.1
2 years ago
1.1.8
2 years ago
1.1.7
2 years ago
1.1.6
2 years ago
1.1.5
3 years ago
1.1.4
3 years ago
1.1.3
3 years ago
1.1.2
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.0.26
3 years ago
1.0.25
3 years ago
1.0.24
3 years ago
1.0.23
3 years ago
1.0.22
3 years ago
1.0.21
3 years ago
1.0.20
3 years ago
1.0.19
3 years ago
1.0.18
3 years ago
1.0.17
3 years ago
1.0.16
3 years ago
1.0.15
3 years ago
1.0.14
3 years ago
1.0.13
3 years ago
1.0.12
3 years ago
1.0.11
3 years ago
1.0.10
3 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago