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

watch-gh-repos

v0.0.1

Published

Watch, unwatch, or ignore GitHub repositories

Downloads

16

Readme

watch-gh-repos

Greenkeeper badge

Watch, unwatch, or ignore GitHub repositories

This tool allows you to automatically set the 'Watch this repo' command, normally done through the GitHub.com user interface, programmatically, either from your CLI or from your JavaScript code. This is ideal in cases where you have dozens of repos to watch or unwatch, and don't want to cycle through everything to find them.

Install

> npm i watch-gh-repos

Usage

const watchGhRepos = require('watch-gh-repos')

watchGHRepos({'watch': 'RichardLitt/watch-gh-repos', 'token': someToken})
 .then((res) => {
   console.log(res) // Watch all the things!
 })

Options

  • -g, --get Get repo watching details
  • -i, --ignore Ignore notifications from a repository
  • -o, --org Specify all repositories from an organization or user
  • -r, --ratelimit Skip checks making sure GitHub repo is valid (Skips 1 hit per repo)
  • -t, --token A Personal Access Token for GitHub. You need scopes notifications and repos.
  • -u, --unwatch Unwatch instead of watch
  • -w, --watch Specify a repo

CLI

You will need a token. You can pass this token in through the command line using the --token flag, or by setting it in your env as WATCH_GH_REPOS. This token needs the scopes notifications and repos to be enabled.

Install

npm i -g watch-gh-repos

Usage


Usage
  $ watch-gh-repos <input> [opts]

Options
  -g, --get Get repo watching details
  -i, --ignore Ignore notifications from a repository
  -o, --org Specify all repositories from an organization or user
  -r, --ratelimit Skip checks making sure GitHub repo is valid (Skips 1 hit per repo)
  -t, --token A token
  -u, --unwatch Unwatch instead of watch
  -w, --watch Specify a repo

Examples
  $ export WATCH_GITHUB_REPOS='19shfds0' # valid  github token

  ~/src/RichardLitt/unwatch-gh-repos $ watch-gh-repos
  Watched: RichardLitt/unwatch-gh-repos

  $ watch-gh-repos RichardLitt/watch-gh-repos
  Watched: RichardLitt/watch-gh-repos

  $ watch-gh-repos --unwatch RichardLitt/watch-gh-repos
  Unwatched: RichardLitt/watch-gh-repos

  $ watch-gh-repos --org --watch RichardLitt
  Watched: RichardLitt/first-repo

Contribute

Contributions welcome. Please check out the issues.

Small note: If editing the README, please conform to the standard-readme specification.

License

MIT © 2017 Richard Littauer

FOSSA Status