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 🙏

© 2025 – Pkg Stats / Ryan Hefner

git-polling-worker-ci

v0.1.2

Published

[![npm version](https://badge.fury.io/js/git-polling-worker-ci.svg)](https://badge.fury.io/js/git-polling-worker-ci)

Readme

Git Polling Worker CI

npm version

Installation

Global

yarn global add git-polling-worker-ci
# or
npm install -g git-polling-worker-ci

Local

yarn add git-polling-worker-ci
# or
npm install git-polling-worker-ci

Usage

Global

Usage: git-ci [options]

Minimal Git CI Polling solution.

Options:
  -V, --version          output the version number
  -d, --directory <dir>  Specify a directory different than the current one.
  -i, --interval <n>     Specify polling interval. It should follow https://www.npmjs.com/package/ms API,
  for example: git-ci -i "60 seconds".
  --no-continue          If the polling should stop after a successful execution.
  -h, --help             display help for command

It will poll every 60 seconds, and if there is a new change detected in the remote repository, it will update the repo and call yarn start

git-ci yarn start

Local

// worker.js | worker.ts

// import { workerGitCI } from "git-polling-worker-ci";
const { workerGitCI } = require("git-polling-worker-ci");

workerGitCI({
  baseDir: "./",
  command: "yarn start",
  pollingInterval: "30 seconds",
  continueAfterExecution: true,
});

Directory changed scripts

(Only via script)

You can specify Directory changed scripts, to verify if specific directories change, and only if the did, execute the specified script, which can be a string of the bash script to be executed or the function (can be an async function).

These scripts always execute before the main command, either sequentially or in parallel (sequentially by default).

workerGitCI({
  command: "yarn start", // You can specify a shell script.
  script: () => {
    // Or a function, but at least one of them has to be specified.
    console.log("Hello world");
  },
  pollingInterval: "30 seconds", // optional => default = 1 minute
  continueAfterExecution: false, // optional => default = true
  directoryChangedScripts: {
    parallel: true, // optional =>  default = false
    options: [
      {
        script: "yarn build-client", // Can be a function or a shell script.
        directories: ["client", "./package.json"], // Directories to compare with, using https://www.npmjs.com/package/folder-hash
      },
      {
        script: "yarn build-api",
        directories: ["api", "./package.json"],
      },
    ],
  },
});