1.3.0 • Published 2 years ago
bm-wrapper v1.3.0
BM Wrapper
A Promise-Based Battlemetrics API Wrapper
Very much a work in progress project, New Versions will be released Daily so make sure to stay up to date.
Documentation will follow.
How to use
Install it through your favorite package manager:
yarn add bm-wrapper
# or
npm i bm-wrapper
Here's a quick example of usage:
const { BattlemetricsClient } = require('bm-wrapper');
//Not a valid API Key
const Battlemetrics = new BattlemetricsClient({
apiKey: 'N68Gg9uM5wvabSzV9SwFVz4fvvgnpSii25FfJqZefXXe4NYUe3Sb6',
});
Battlemetrics.getBanInfoById('15510636').then((res) => {
console.log(res);
}).catch((err) => {
console.log(err)
});