npm i --save pyke
const {Pyke, Regions, DDragon} = require('pyke');
const api = new Pyke('Your api Key');
var region = "euw";
var regionsId = Regions[region]; // => euw1
api.summoner.getBySummonerName("SP Jason", regionsId)
.then(data =>{
return console.log(data);
})
.catch(error =>{
return console.error(error)
});