Pokenode-ts is a lightweight Node.js wrapper for the PokéAPI with built-in types. It provides an easy way to integrate your application with the PokéAPI.
- 🛠️ Built-in typings: TypeScript support with pre-defined types.
- 📦 Axios with auto-cache requests: Efficiently manage API requests with automatic caching.
- 🌲 Logging: Easily log and track your API interactions.
# NPM
npm install axios axios-cache-interceptor pokenode-ts
# Yarn
yarn add axios axios-cache-interceptor pokenode-ts
# Pnpm
pnpm add axios axios-cache-interceptor pokenode-ts
import { PokemonClient } from 'pokenode-ts'; // Import the Client
const pokemon = await api.getPokemonByName('luxray') // Make the request
.catch(() => console.log("Oops!"));
console.log(pokemon.name); // Typesafe response ✨ (Outputs "Luxray")
Check out our Documentation page!
Every change in this project is analyzed by SonarCloud
- Did you like pokenode-ts? Give us a star ⭐
- Found a problem? Let us know by creating an issue 🔎
- Want to contribute? Submit a PR 📑
If pokenode-ts is valuable to you, please consider buying me a coffee ❤️