Getting started with Brawlstats
To install brawlstats
you can run the following command:
- npm
- yarn
- pnpm
npm install brawlstats
yarn add brawlstats
pnpm add brawlstats
Demo Client
Here is a quick client example to get you started:
- JavaScript
- ESM
- UMD
const { Client } = require('brawlstats');
const client = new Client({
token: 'your-api-key'
});
import { Client } from 'brawlstats';
const client = new Client({
token: 'your-api-key'
});
const client = new BrawlStats.Client({
token: 'your-api-key'
});
tip
You can directly call the client without a constructor if you have your api-key inside an environment variable named
BRAWLSTARS_TOKEN
like:
new Client();