Skip to content

abnerrods/ZedJS

Repository files navigation

First lib

βš” ZedJS πŸ‘Ύ

GitHub language count Repository size GitHub last commit Repository issues License

πŸš€ Technology   |    πŸ’» Project   |    ⏭ Tutorial   |    πŸ€” How to contribute   |    πŸ“ License

πŸš€ Technology

This project was developed with the following technologies:

πŸ’» Project

Fetch all the Riot API with ZedJS lib!

⏭ Tutorial

.env

RIOT_API_KEY=YOUR_API_KEY_ON_.ENV

League of Legends:

import { LolApi, Constants } from '@jlenon7/zedjs'

const api = new LolApi()

export async function summonerByNameExample () {
  return await api.Lol.Summoner.getByName('iLenon7', Constants.Regions.BRAZIL)
}

Teamfight Tatics:

import { TftApi, Constants } from '@jlenon7/zedjs'

const api = new TftApi()

export async function matchListTft () {
  const {
    response: {
      puuid
    }
  } = api.Summoner.getByName('iLenon7', Constants.Regions.BRAZIL)
  return api.Match.list(puuid, Constants.TftRegions.TftRegions.AMERICAS)
}

πŸ€” How to contribute

  • Fork this repository;
  • Create a branch with your feature: git checkout -b my-feature;
  • Commit your changes: git commit -m 'feat: My new feature';
  • Push to your branch: git push origin my-feature.

After the merge of your pull request is done, you can delete your branch.

πŸ“ License

This project is under the MIT license. See the LICENSE for more details.


Made with πŸ–€ by jlenon7 πŸ‘‹

About

βš”πŸ‘Ύ Riot API Library for NodeJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published