0.0.10 • Published 2 years ago

lol-plus v0.0.10

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
2 years ago

lol-plus

npm version

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();
0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago