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

heb-cheater

v1.4.3

Published

### Requirements

Downloads

4

Readme

HEB Cheater

Requirements

nodejs >= 12
Optional: If using --open true for magic tab opening, a system with open shell command with a valid browser configured to delegate https://-prefixed string arguments to said browser. macOS does this out of the box with Safari (or whatever your Finder / System Preferences uses for default browser settings).

Setup

bash
git clone https://github.com/andrew-templeton/heb-cheater;
cd heb-cheater;
npm install;
node bin/cli # rest of your arguments here;
node
# in bash, npm install heb-cheater
const heb = require('heb-cheater')
(async () => {
  const stores = await heb({ latitude /* your args here */ })
  console.log(JSON.stringify(stores, null, 2))
})();

Use

node index [all the args]

All arguments used like: --arg value.
Boolean flags should be used as value of true, all default to false.

latitude

Floating point, signed latitude of the centerpoint of search.
Default: 30.270077 (a place in Austin, TX)

longitude

Floating point, signed longitude of the centerpoint of search.
Default: -97.7437001 (a place in Austin, TX)

distance

Floating point, unsigned distance as the crow flies in miles from centerpoint you're willing to travel.
Default: 100

minimum

Unsigned, 1-is-minimum, integer for lowest number of available appointments needed at a store to qualify for selection within your radius. This is useful, because lots of stores with 1 appointment are noisy, and very difficult for you to instantly grab the sole available slot. If you set this to something like 10 or 20, it will be a lot easier to react to the listing and book one of the slots before they are all claimed.
Default: 1

interval

Unsigned, floating point value for the number of seconds to wait between pings when using --watch true. Recommend using no lower than 10, as you could be blocked otherwise. You might have good results in a mass booking workflow if you use all of --watch true --forever true --open true and set this number to 60 (one minute), meaning every one minute it will open all viable stores with enough slots in your radius, allowing you to react en-masse in realtime to availability. Lower numbers in this use case would overwhelm the senses.
Default: 10

watch

Boolean flag for if the system should keep checking until a store meeting your needs is found, versus trying one time and stopping.

open

Boolean flag for if the system call to open <found store urls> should be used when stores are found. This will open LOTS of tabs if used with --watch true --forever true, take care.

forever

Boolean flag, when used with --watch true, which will cause the system to keep pinging for stores even after one or more valid stores meeting your conditions are found. Be careful using all three of the flags: --watch true --forever true --open true, as this will keep opening tabs for found stores every --interval true.