Package Exports
- pokeapi-enhanced
- pokeapi-enhanced/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pokeapi-enhanced) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
pokeapi-enhanced
A better suitable PokeAPI wrapper for Node projects using ESM.
Installation Guide:
npm install pokeapi-enhanced
Usage:
import Pokedex from 'pokeapi-enhanced';
const dex = new Pokedex('pikachu');
const entry = await dex.getPokemon();
const heldItem = entry?.held_items?.[0].item;
const pastType = entry?.past_types?.[0]?.types?.[0]?.type?.name;Always make sure that you check the API docs for reference.
Some pokemons might not have some properties and will display as null or undefined.