Skip to content

Gabb-c/pokenode-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

dba280e · Jan 17, 2025
Mar 10, 2024
Jul 9, 2024
Jul 1, 2024
Jun 27, 2024
Jun 23, 2024
Jul 17, 2024
Jan 13, 2025
Jun 27, 2024
May 4, 2024
Jul 13, 2024
May 3, 2024
Jan 12, 2025
Dec 21, 2023
Sep 16, 2024
Jan 17, 2025
Apr 23, 2024
Jan 17, 2025
Jan 17, 2025
Jan 13, 2025
Apr 19, 2024
Jul 1, 2024
Jan 17, 2025

Repository files navigation

Pokenode-ts

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.

Features

  • 🛠️ 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.

Installation

# 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

Basic Example

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")

Documentation

Check out our Documentation page!

Security

Every change in this project is analyzed by SonarCloud

Quality Gate Status Bugs Code Smells Quality Gate Status codecov

Leave your feedback

Donate

If pokenode-ts is valuable to you, please consider buying me a coffee ❤️

Analytics