Skip to content

Latest commit

 

History

History
51 lines (39 loc) · 1.6 KB

README.md

File metadata and controls

51 lines (39 loc) · 1.6 KB

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 arcane.ts

Summoner Data Example

const { LeagueClient } = require('arcane.ts');

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

License

Please read the the LICENSE file.