lol-plus
v0.0.10
Published
A LoL API Wrapper
Downloads
5
Maintainers
Readme
lol-plus
A Simple League of Legends API Wrapper for Node
WARN: This project is under development.If you found bug, or issues, please submit via Github Issues!
QuickStart
$ npm i lol-plus
import { LoLPlusClient } from 'lol-plus'
const client = new LoLPlusClient({
// Riot API Key
apiKey: '*************',
// Game Platform, Used to choose API Endpoint
// Full List Could be found at Riot API Documention
gamePlatform: 'KR' | 'NA1' | 'LA1' | 'LA2',
// Game Region, Used to get DataDragon Realm Information
gameRegion: 'KR' | 'JP' | 'NA' | 'LAN' | 'LAS',
});
const app = async () => {
// Get Rotation Champion List (Returns Promise)
const rotaionChampionList = await client.champion.getRotationChampionList();
// Logs Rotation Champion Names
console.log(rotationChampionList.freeChampionList.map((e) => e.name));
// Get Summoner Information By Summoner Name
await client.summoner.getSummonerByName('summonerName');
}
app();