Js4LoL
Installation
npm install js4lol
How to use
// Import the libraryvar Js4LoL = require('./js4lol.js'); // Basic configvar config = { api_key: 'YOUR-API-KEY', debug: true }; // Instantiatevar js4lol = new Js4LoL(config); // Call a method with the necessary parametersjs4lol.getSummonerByName('lan', 'MicroIce', function(error, body) { if (body) console.log(body); else console.log(error);});
Click here to see all the methods.
About
This was made with learning purposes. Partly inspired by the LoL API Wrapper by Alejandro Perezpayá.
Feel free to use or modify this code in any way.