arcane.ts
v1.0.0
Published
Easiest way to use the Riot api!
Readme
About
Arcane.ts is a NodeJs and Typescript wrapper for easier use of the Riot API used for games such as League of Legends, Valorant, TFT; This Wrapper is still on development so I haven't completly covered all of the API.
- Object-oriented
- Performant
Installation
npm install --save riot-wrapperSummoner Data Example
const { LeagueClient } = require('riot-wrapper');
const client = new LeagueClient("API_KEY", "LEAGUE_VERSION");
const summoner = await client.getSummoner("Scaredy Cat", "la1");
console.log(summoner);Summoner Mastery Example
const { LeagueClient } = require('riot-wrapper');
const client = new LeagueClient("API_KEY", "LEAGUE_VERSION");
const summoner = await client.getSummoner("Scaredy Cat", "la1");
const masteries = await summoner.getMasteries();
const champInfo = await masteries[0].getChampInfo();
console.log(champInfo);License
Please read the the LICENSE file.
