New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

guardcat

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

guardcat

A utility to help dealing with GitHub notifications

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
3
200%
Maintainers
1
Weekly downloads
 
Created
Source

Build Status XO code style Coverage Status

GuardCat

GitHub notifications can be overwhelming. I watch a lot of repos and would like to get notifications only for repos that match a given pattern. So let me introduce you to GuardCat – a simple helper utility to query the GitHub API recursively for particular patterns (and possibly more options later).

A cat watching the Octocat

Side note: This utility is mainly used to build a CLI tool and web app with it.

Getting started

$ npm i --save guardcat
const guardCat = require( 'guardcat' );

guardCat.run( {
  // your GitHub access token
  // -> https://github.com/settings/tokens
  token : '234567890',
  // patterns for notifications repos (uses minimatch)
  // -> everything that works there is possible here, too
  repoPatterns : [ 'stefanjudis/*', 'tc39/ecma262' ]
} ).then( notification => {
  // notifications only matching one of the patterns
  console.log( notification );
} );

guardCat.run( options )

Get all GitHub notifications for repos matching the patterns.

Parameters:

  • options.token {string} (required)
  • options.repoPatterns {array} (required)

Returns: {Promise}

Keywords

github

FAQs

Package last updated on 12 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts