Installing brawlup.js and Node.js

Installing Node.js

Don't installed Node.js yet? Download it by clicking hereopen in new window

DANGER

You MUST install Node.js before following other steps. Please double-check!

WARNING

You need to have Node.js v16 installed. Older versions may have problems.

Installing brawlup.js

Now, get into the easy steps!

Installing brawlup.js is only a 3 word command.

npm i brawlup.js
1

Copy this in your console.

Run brawlup.js

const bs = require('brawlup.js');
const bjs = new bs.Client('BrawlStarsAccessToken')

;(async() => {
 
 //Get the player from the client.
 const player = await bsClient.getPlayer('#2YCC2P8U8')
 
 //Expected: Alpu TV ( #2YCC2P8U8 )
 console.log(`${player.name} ( ${player.tag} )`)
})()

//If you didn't provided a token for this Client, provide now.
bjs.login('BrawlStarsAccessToken')
 
 











 
1
2
3
4
5
6
7
8
9
10
11
12
13
14