pokemon-node

1.0.0-fix2 • Public • Published

Pokemon-Node

An unofficial RESTful API that fetches data about Pokemon from PokeAPI

Methods

GET Pokemon

const PokemonNode = require('pokemon-node');
PokemonNode.getPokemon('charmander')
  .then((pokemon) => console.log(pokemon))
/*
  { name: 'charmander',
  weight: 85,
  sprites:
   { back_female: null,
     back_shiny_female: null,
     back_default: 'https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/back/4.png',
     front_female: null,
     front_shiny_female: null,
     back_shiny: 'https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/back/shiny/4.png',
     front_default: 'https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/4.png',
     front_shiny: 'https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/shiny/4.png' },
  height: 6,
  id: 4,
  types: [ 'fire' ],
  baseEXP: 62 
*/
  .catch((err) => console.error(err)) // Catches errors!

Maintained and authored by Striker

Readme

Keywords

Package Sidebar

Install

npm i pokemon-node

Weekly Downloads

0

Version

1.0.0-fix2

License

MIT

Unpacked Size

5.5 kB

Total Files

9

Last publish

Collaborators

  • strikerrrr