BeatSaberAPI-Node is an Open Source Library that allows for easy interaction with different BeatSaber API's through a well documented Node.JS library.
- ScoreSaber
- BeatLeader
Run the following command
npm install beatsaberapi-node
After installing, besure to install dependencies
npm install
const BeatSaberNode = require('beatsaberapi-node');
// example function call
let res = BeatSaberNode.ScoreSaber.Ranking.Public.getRequestInfoByLeaderboardId('578412')
res.then(function resolved(data) {
console.log(data)
})
You can build the documentation yourself by running the following command or visit the docs
npm run docs