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

pogo-populate

v0.0.9

Published

This module fills the POGOserver with random pokemon spawns, pokestops and gyms (last two need to be implemented). The locations of the POIs are based on where players are situated. Pokemons won't spawn in the middle of the ocean (unless someone is playin

Downloads

2

Readme

Pogo-populate

Populate POGOserver with random Pokémon spawns, pokéstops and gyms. (Pokéstops and gyms need to be implemented)

Install

$ npm install --save pogo-populate

##Description

Pogo-populate let you automatically insert random Pokémon spawns, pokéstops and gyms within a range of a specified locations, such as players. It can be adjusted how many Pokémon need to be present at the specified location and how rare the Pokémon are that are spawned.

##Config file Pogo-populate uses the same config file as POGOserver. These lines need to be added in order to let pogo-populate work with your preferences

    RANDOM_SPAWNS_AT_PLAYERS: true, //enable or disable pogo-populate
    RADIUS: 2, //In kilometers. The radius of the maximum distance Pokémon need to be spawned.
    RARITY_RATE: 1.5, //The higher, the less likely rare Pokemon will appear
    NUMBER_SPAWNS: 500, //Number of spawns within the specified radius
    POKEMON_PER_SPAWN: 1, //How many Pokémon there need to be spawned at the spawn location

Usage

import Populate from "pogo-populate";
//CFG is the config file specified by POGOserver
let populate = new Populate(CFG);

API

.createRandomPokemon(latitude: number, longitude: number) => Promise

Creates random Pokémon within a specified range of a location

  populate.createRandomPokemon(latitude, longitude).then((res, rej)=>{
          if(rej){print(rej, 31)}
          else {
            print(res, 33)
          }
        })

.createRandomPokestops(latitude: number, longitude: number) => Promise

Creates random Pokéstop within a specified range of a location.

//Needs to be implemented.

.createRandomGyms(latitude: number, longitude: number) => Promise

Creates random Gyms within a specified range of a location.

//Will be implemented when gyms are supported by POGOserver.