pokeapi-node-wrapper
v1.0.0
Published
A node wrapper for the pokeapi.co
Downloads
2
Readme
PokeApi Node Wrapper
This is a simple node wrapper to the PokéApi api.
Usage:
Requiring in the node-wrapper will return an object literal that exposes functions that access the endpoints.
var pokeApi = require('pokeapi-node-wrapper'),
callback = function(err, jsonResponse) {
// Implement
};
pokeApi.getPokedex(1, callback);
pokeApi.getPokemon(1, callback);
pokeApi.getType(1, callback);
pokeApi.getMove(1, callback);
pokeApi.getAbility(1, callback);
pokeApi.getEggGroup(1, callback);
pokeApi.getDescription(2, callback);
pokeApi.getSprite(1, callback);
pokeApi.getGame(1, callback);
A great place to start would be checking out test/index.js
.
API Documentation
For a more thorough documentation of what server responses to expect, checkout PokéApi's Docs