0.0.11 • Published 4 years ago

scuttle-crab v0.0.11

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

Scuttle Crab

A wrapper for the LOL Gamepedia REST API.

For more information, please refer to API documentation.

Getting Started

Installation

if you use npm

npm install scuttle-crap

if you use yarn

yarn add scuttle-crap

Example 1

Feature: champions > find

const { champions } = require('scuttle-crab');

async function main() {
  const championsRepository = champions();

  const allChampions = await championsRepository.find({});

  console.log(allChampions);
}

main();

Example 2

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();

Features

  • Champions:
    • Find;
  • Current Leagues:
    • Find;
  • Champion Flashcards:
    • Find;
  • Chroma Set:
    • Find;
  • Chromas:
    • Find;
  • Players:
    • Find;
  • Scoreboard Games:
    • Find;

Contributing

To get started...

Step 1

  • Option 1
    • 🍴 Fork this repo!
  • Option 2
    • 👯 Clone this repo to your local machine using git clone https://github.com/ribeirogab/scuttle-crab.git

Step 2

  • HACK AWAY! 🔨🔨🔨

Step 3

  • 🔃 Create a new pull request using https://github.com/ribeirogab/scuttle-crab/compare/.

Contributors

Author

@ribeirogab

FAQ

  • How do I do specifically so and so?
    • No problem! Just do this.

Support

Contact me!

  • E-mail ribeirogabx@gmail.com

Licensa

License

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago