{"repo":"fightmegg/riot-api","free":true,"listed":false,"github":"https://github.com/fightmegg/riot-api","clone":"git clone https://github.com/fightmegg/riot-api.git","description":"Client for Riot Games API","language":"TypeScript","stars":98,"topics":["riot-games-api","riot-games","league-of-legends","league-of-legends-api","nodejs","api-wrapper","riot-api"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"RiotAPI Node.JS minimal Riot API client written in Typescript Features - Rate limiting through @fightmegg/riot-rate-limiter - Automatic retries - TypeScript typings - 100% endpoint coverage (incl. DDragon) - Caching with custom ttls per endpoint - Request prioritization Installation Usage Config Error handling If you use Promises then any error will reject the promise, this can either be an error value, or the response from the API. Same as above with async/await , where the error thrown will be the response from the API if the error occured at that level. Caching Caching is turned off by default, but with the cache property in the config you can enable it with various settings. For now we only support local (in memory) or ioredis caches, will potential support for custom caches in future. When setting up the cache, you can change the ttl of each method / endpoint individually. This is done through the METHOD KEY type which can be found in the typings file. DDragon We also fully support DataDragon which can be accessed in two ways: If you want to just use static data only, then you can do the following: Just like the main API, we have full TypeScript typings for DDragon endpoints. Please note we do not support caching for DDragon endpoints. regionToCluster A helper method to make it easier to determing which cluster you want to hit based on the users region TypeScript typing Debugging If you want to see want the rate-limiter is currently doing, we use the debug module for log","default_branch":null,"files":null,"tree":[],"storefront":"/r/fightmegg","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fightmegg/riot-api/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}