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

You can install leagueoflegends-js by using npm:

npm i leagueoflegends-js

Examples

Fetching a summoner using name:

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