metagross
v1.0.0
Published
A promise-based wrapper for PokeAPI/api-data.
Downloads
3
Readme
Metagross
A simple, efficient wrapper for PokeAPI/api-data.
Usage
To look up a specific Pokemon, simply pass in the Pokemon's name.
const metagross = require('metagross');
const pokemon = metagross.getPokemon('pikachu');
console.log(pokemon);
Alternatively, a Pokemon's id can be provided instead of its name.
const metagross = require('metagross');
const pokemon = metagross.getPokemon(25);
console.log(pokemon);
All types of data present in api-data
are also available via metagross
.
const metagross = require('metagross');
const move = metagross.getMove('iron-tail');
console.log(move);