lol-api-wrapper
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

lol-api-wrapper

NodeJS wrapper for the League of Legends and Summoner parts of the RIOT Games API (https://developer.riotgames.com/)

Documentation

This wrapper is still a work in progress. It currently implements the following APIs:

Usage

sh npm install lol-api-wrapper

const { RiotApiWrapper } = require("lol-api-wrapper");

const api = new RiotApiWrapper("RIOT-API-KEY");

// Get summoner by name
api.getSummonerByName("EUW1", "SummonerName")
    .then((summoner) => {
        console.log(summoner);
    })
    .catch((err) => {
        console.log(err);
    });

/lol-api-wrapper/

    Package Sidebar

    Install

    npm i lol-api-wrapper

    Weekly Downloads

    2

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    69.3 kB

    Total Files

    24

    Last publish

    Collaborators

    • abegue