1.0.0-fix2 • Published 6 years ago

pokemon-node v1.0.0-fix2

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

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