1.0.0 • Published 10 years ago

pokeapi-node-wrapper v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
10 years ago

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