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
npm install --save arcane.ts
const { LeagueClient } = require('arcane.ts');
const client = new LeagueClient("API_KEY", "LEAGUE_VERSION");
const summoner = await client.getSummoner("Scaredy Cat", "la1");
console.log(summoner);
const { LeagueClient } = require('arcane.ts');
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);
Please read the the LICENSE file.