speedrun.com API library for Node.js apps
npm i speedrun.js
This following example uses async/await, you can also use .then()
// Import the module:
const speedrun = require("speedrun.js");
async function speedrunJsExamples(){
var out;
// Get game information:
out = await speedrun.games.getGameByAbbreviation('hl2')
console.log(out.names.international) // hl2 will output Half-Life 2
// Search games and get information
out = await speedrun.games.getGamesByName('Watch Dogs')
console.log(out) // This will output an array of information containing Watch Dogs in the name
}
speedrunJsExamples()
Refer to the examples dir for more examples
- Finish API (get anything with functions)
- Documentate as fast as possible
- Logo for the Readme and for the website
-
Beat node-speedrun's PB(jk, you can use this lib while I make mine)