0.2.4 • Published 8 years ago

poke-v2 v0.2.4

Weekly downloads
2
License
MIT
Repository
github
Last release
8 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

8 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.9

8 years ago

0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago