node-speedrun
Version:
Node.js wrapper for the Speedrun.com API
12 lines (8 loc) • 344 B
JavaScript
const SpeedrunClient = require('../lib/Client.js')
const speedrun = new SpeedrunClient()
// Get category details
speedrun.categories.get('j1npme6p').then(console.log)
// Get category variables
speedrun.categories.getVariables('j1npme6p').then(console.log)
// Get category records
speedrun.categories.getRecords('j1npme6p').then(console.log)