A wrapper for the LOL Gamepedia REST API.
For more information, please refer to API documentation.
if you use npm
npm install scuttle-crap
if you use yarn
yarn add scuttle-crap
Feature: champions > find
const { champions } = require('scuttle-crab');
async function main() {
const championsRepository = champions();
const allChampions = await championsRepository.find({});
console.log(allChampions);
}
main();
Feature: champions > find
const { champions } = require('scuttle-crab');
async function main() {
const championsRepository = champions();
const NameOfTenChampions = await championsRepository.find({
order_by: { field: { name: 'Name' }, order: 'DESC' }, // order by name
fields: [{ name: 'Name' }], // only field name
limit: 10,
});
console.log(NameOfTenChampions);
}
main();
- Champions:
- Find;
- Current Leagues:
- Find;
- Champion Flashcards:
- Find;
- Chroma Set:
- Find;
- Chromas:
- Find;
- Players:
- Find;
- Scoreboard Games:
- Find;
To get started...
- Option 1
- 🍴 Fork this repo!
- Option 2
- 👯 Clone this repo to your local machine using
git clone https://github.com/ribeirogab/scuttle-crab.git
- 👯 Clone this repo to your local machine using
- HACK AWAY! 🔨🔨🔨
- 🔃 Create a new pull request using
https://github.com/ribeirogab/scuttle-crab/compare/
.
@ribeirogab |
---|
- How do I do specifically so and so?
- No problem! Just do this.
Contact me!
- E-mail
ribeirogabx@gmail.com