1.0.0 • Published 3 years ago

arcane.ts v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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-wrapper

Summoner 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.


1.0.0

3 years ago