valor

LoL API Wrapper for Node.js

Usage no npm install needed!

<script type="module">
  import valor from 'https://cdn.skypack.dev/valor';
</script>

README

Valor

Build Status

NPM Download

League of Legends API Wrapper for Node.js

Grab an API key from http://developer.riotgames.com

Installation

npm install valor

Usage

var valor = require('valor');
var valortest = new valor(your_api_key);

valortest.getSummonerById('194532568', function (err, res){
  console.log(res);
});
valortest.getSummonerMasteries('19453268', function(err,res){
   console.log(res);
});

valortest.getSummonerRunes('19453268', function(err,res){
   console.log(res);
});

Methods

  • Valor.getChampions(id, region, callback);
  • Valor.getChampionById(id, region, callback);
  • Valor.getSummonerByName(name, callback);
  • Valor.getSummonerById(id, callback);
  • Valor.getSummonerMasteries(id, callback);
  • Valor.getSummonerRunes(id, callback);
  • Valor.getRankedStats(id, callback);
  • Valor.getSummonerSummary(id, callback);
  • Valor.getRecentGame(id, callback);
  • Valor.getSummonerLeague(id, callback);
  • Valor.getSummonerLeagueEntry(id, callback);
  • Valor.challengerRankings(callback);
  • Valor.championData(callback);

TODO

  • Finish implementing all of the API calls
  • Add more region support beyond NA
  • Document all methods throughly