@illegal-function/rlstats
v0.1.0
Published
Rocket League Stats api.
Downloads
3
Maintainers
Readme
Rocket League Stats API
A fork / rewrite of https://github.com/RocketLeagueStats/rls-api-nodejs
Installation
npm i @illegal-function/rlstats
Usage
set the RLSTATS_TOKEN
environment variable to the token you got from https://developers.rocketleaguestats.com/
const rls = require('@illegal-function/rlstats')
...
// fetch steam player
const steamPlayer = await rls.steam('illegal-function')
// or
const steamPlayer = await rls.platform(rls.platforms.steam)('illegal-function')
// or
const steamPlayer = rls.platform('pc')('2683756825723')
// search for players
const pageOne = await rls.search('twitch.tv').page(0)
const pageTwo = await rls.search('twitch.tv').page(1)
// fetch ranked leaderboard
const shitPlaylist = await rls.soloStandard()