UNPKG

league-wrapper

Version:

REST API Wrapper for the League of Legends API

19 lines (13 loc) 370 B
'use strict'; const LeagueWrapper = require('../index.js'); const apiKey = process.env.RIOTGAMES_API_KEY; if (!apiKey) { throw new Error('No API key specified, check the documentation for usage'); } const api = new LeagueWrapper(apiKey, { region: 'euw' }); /** * @type {module:LeagueWrapper~LeagueWrapper} */ exports = module.exports = api;