pokevision

2.1.0 • Public • Published

Pokévision

This is a small client for Pokévision in Node.js.

Installation

npm i --save pokevision

Usage

import pokevision from 'pokevision'
 
const lat = -33.870958946626885
const lng = 151.21347069740295
 
// Optionally pass a third `filter` parameter, which is a whitelist
// array of Pokémon IDs (as displayed in the Pokédex).
pokevision(lat, lng)
  .then(({ status, pokemon }) => {
    console.log(`Pokemon at ${lat}${lng}`, pokemon)
  })
  .catch((err) => {
    // Catch any errors (e.g. throttled requests)
    console.error(err)
  })

Check out more examples here.

/pokevision/

    Package Sidebar

    Install

    npm i pokevision

    Weekly Downloads

    0

    Version

    2.1.0

    License

    GPL-2.0

    Last publish

    Collaborators

    • onbjerg