nol

node-of-legends

A wrapper for the League of Legends API using Promises Completely updated for API v3.

Showing:

Popularity

Downloads/wk

13

Maintenance

No Maintenance Data Available

Package

Dependencies

2

Size (min+gzip)

4.1KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Node-of-Legends

League of Legends API Wrapper for Node.JS utilizing ES6 Promises

A wrapper for the League of Legends API using Promises Completely updated for API v3.

TODO: Tournament End Points

*Note: This is a full breaking change from version 1 of this library

A full API can be found at http://node-of-legends.suds.io/api

Installation

npm install node-of-legends

Usage

Just require node-of-legends, set config and you're good to go!

var lol = require('node-of-legends');
lol.setConfig({
    region: lol.REGION.NORTH_AMERICA,
    apikey: '<my-api-key>'
});

That's it. It's all setup now. Want to pull all Champion data?! Super easy:

lol.staticdata.getAllChampData()
    .then(function(data){
        console.log(data);
    })
    .catch(function(error){
        console.log(error);
    });

Want more control directly over the Riot API? That's also available!

var dataTypesToRetrieve = [];
var mapDataById = true;
var locale = 'en_US';
var region = 'NA';
var version = '4.13.1';
lol.staticdata.getChampionList(dataTypesToRetrieve, mapDataById, locale, version, region)
    .then(function(data){
        console.log(data);
    })
    .catch(function(error){
        console.log(error);
    });

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial