pokemon-node

A simple RESTful API which gathers Pokemon stuff.

Usage no npm install needed!

<script type="module">
  import pokemonNode from 'https://cdn.skypack.dev/pokemon-node';
</script>

README

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