js4lol

0.1.4 • Public • Published

Js4LoL

Installation

npm install js4lol

How to use

// Import the library
var Js4LoL = require('./js4lol.js');
 
// Basic config
var config = {
    api_key: 'YOUR-API-KEY', 
    debug: true 
};
 
// Instantiate
var js4lol = new Js4LoL(config);
 
// Call a method with the necessary parameters
js4lol.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.

Package Sidebar

Install

npm i js4lol

Weekly Downloads

1

Version

0.1.4

License

none

Last publish

Collaborators

  • dapd007