Introduction
Leagueoflegends-js is a wrapper for the League of Legends API made by Riot Games. This is for users that use node.js and want an easier way to interact with the League API.
Installation
npm i leagueoflegends-jsExamples
const LoL = require("leagueoflegends-js");
const api = new LoL.API({
apikey: "YoUr-aPi-kEy",
reigon: "euw1",
});
api.fetchSummoner("name").then(summoner => {
console.log(summoner);// { Object }
})Last updated
Was this helpful?
