0.2.4 • Published 10 years ago

poke-v2 v0.2.4

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

poke-v2

A NodeJS wrapper for the api provided by http://pokeapi.co

  npm install --save poke-v2
  • All function calls return a promise.
  • If that promise is resolved the returned value is an object with .res and .body

#Example

  import Poke from 'poke-v2';
  // var Poke = require('poke-v2').default; If not using babel es2015
  
  var poke = new Poke();
  
  // For example we will call the pokemon function.
  poke.pokemon(1)
    .then((data) => {
      console.log(data.res);
      console.log(data.body);
    })
    .catch((err) => {
      console.log(err);
    })
    .done();

For documentation go to: http://pokeapi.co/docsv2/
For a list of all functions available through poke-v2 please look in the ./functions.json file

0.2.4

10 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.9

10 years ago

0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago