{"repo":"PokeAPI/pokedex-promise-v2","free":true,"listed":false,"github":"https://github.com/PokeAPI/pokedex-promise-v2","clone":"git clone https://github.com/PokeAPI/pokedex-promise-v2.git","description":"An easy way to use pokeapi v2 with promises in node.js","language":"TypeScript","stars":560,"topics":["pokemon","nodejs","javascript","wrapper","pokeapi","hacktoberfest"],"license":"MIT","category":"dev-tools","readme_excerpt":"pokedex-promise-v2 Maintainers: Naramsim, TheTommyTwitch and HRKings An easy way to use Pokéapi v2 with promises (or callbacks as of v3) in node.js Table of Contents - pokedex-promise-v2 - Install - Usage - Example requests - Configuration - Endpoints - Berries - Contests - Encounters - Evolution - Games - Items - Machines - Moves - Locations - Pokemon - Utility - Custom URLs and paths - Root Endpoints - List of supported root endpoints Install As of 4.0.0 this package is now pure ESM. Please read this. Usage NOTE : Any function with the designation \"ByName\" can also be passed an integer ID. However, the functions with the designation \"ById\" can only be passed an integer ID. Refer to the pokeapi v2 docs to find out more about how the data is structured. UPDATE : You can pass an array to each endpoint, it will retrive data for each array element. If you scroll down, you will find an example. Example requests Configuration Pass an Object to Pokedex in order to configure it. Available options: protocol , hostName , versionPath , cacheLimit in ms, timeout in ms. Any option is optional :smile:. If no Object is passed, the Pokedex will be initialized to grab data from pokeapi.co using http with 20 seconds timeout and caching resources for 11 days. HTTPS is the default protocol. Endpoints Berries Use getBerryByName to return data about a specific berry. Use getBerryFirmnessByName to return data about the firmness of a specific berry. Use getBerryFlavorByName to return data about the","default_branch":null,"files":null,"tree":[],"storefront":"/r/PokeAPI","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/PokeAPI/pokedex-promise-v2/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."}