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

0.0.10 • Public • Published

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

Package Sidebar

Install

npm i lol-plus

Weekly Downloads

1

Version

0.0.10

License

GPL-3.0

Unpacked Size

81.9 kB

Total Files

82

Last publish

Collaborators

  • devjeon1358