npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

pokego-scanner

v0.1.7

Published

Scan locations for Pokemon in Pokemon GO

Downloads

2

Readme

pokego-scanner

Node package for scanning Pokemon in Pokemon GO.

No authentication with PTC or Google is required at this time.

This project is not endorsed in by Nintendo or Niantic in any way; use it at your own risk.

Usage

From NodeJS

$ npm install pokego-scanner
var pokegoScan = require('pokego-scanner');

var coords = {
    latitude: 40.4164737,
    longitude: -3.7042757
};

// obtain an array of pokemon close to the given coordinates
pokegoScan(coords, function(err, pokemon) {
    if (err) throw err;
    console.log(pokemon);
});

/* returns:
[ { id: '23578871',
    data: '[]',
    expiration_time: 1469133198,
    pokemonId: '56',
    latitude: 40.41668174482,
    longitude: -3.7048426265191,
    uid: '0d422880aed:23',
    is_alive: true,
    name: 'Mankey',
    map: 'https://pokevision.com/#/@40.41668174482,-3.7048426265191',
    image: 'https://ugc.pokevision.com/images/pokemon/56.png',
    distance: 53,
    distance_str: '53m',
    despawns_in: 603,
    despawns_in_str: '10:03' },
  ... ]
*/

// filter by max distance
pokegoScan(coords, {distance: 100}, function(err, pokemon) {
    if (err) throw err;
    console.log(pokemon);
});

// filter by specific pokemon
pokegoScan(coords, {filter: ["Zubat", "Pidgey"]}, function(err, pokemon) {
    if (err) throw err;
    console.log(pokemon);
});

From the console

$ npm install -g pokego-scanner
$ pokego-scanner --lat=40.4164737 --lng=-3.7042757
Optional flags:
$ pokego-scanner --lat=40.4164737 --lng=-3.7042757 --distance 100 --pokemon Pidgey

Debugging

Some debugging info can be shown through the debug package. To enable it, use the namespace pokego-scanner:

$ DEBUG=pokego-scanner pokego-scanner -- 40.4164737,-3.7042757
  pokego-scanner https://pokevision.com/map/scan/40.4164737/-3.7042757 +0ms
  pokego-scanner { status: 'success', jobId: '1f6df38141ceaa194703b22830f0e80f' } +293ms
  pokego-scanner https://pokevision.com/map/data/40.4164737/-3.7042757/1f6df38141ceaa194703b22830f0e80f +15ms
  pokego-scanner { status: 'success', jobStatus: 'in_progress' } +183ms
  pokego-scanner job in progress, retry in 1500ms (attempt 2 of 10) +0ms
  pokego-scanner https://pokevision.com/map/data/40.4164737/-3.7042757/1f6df38141ceaa194703b22830f0e80f +2s
  pokego-scanner { status: 'success', jobStatus: 'in_progress' } +194ms
  pokego-scanner job in progress, retry in 3000ms (attempt 3 of 10) +1ms
  pokego-scanner https://pokevision.com/map/data/40.4164737/-3.7042757/1f6df38141ceaa194703b22830f0e80f +3s
  pokego-scanner { status: 'success', pokemon: [ { id: '24192555', ... }, ... ] } +224ms
[ { id: '24703530',
    data: '[]',
    expiration_time: 1469134868,
    pokemonId: '16',
    latitude: 40.416268962029,
    longitude: -3.7053183409618,
    uid: '0d42287efab:21',
    is_alive: true,
    name: 'Pidgey',
    map: 'https://pokevision.com/#/@40.416268962029,-3.7053183409618',
    image: 'https://ugc.pokevision.com/images/pokemon/16.png',
    distance: 91,
    distance_str: '91m',
    despawns_in: 597,
    despawns_in_str: '09:57' },
  ... ]