open-github-notifications

0.0.8 • Public • Published

open-github-notifications Build Status

Open GitHub notifications from your command line

Install

$ npm install --global open-github-notifications

Make sure to create a token off of GitHub and set it in your .bash_profile as $GITHUB_OGN_TOKEN.

Usage

const openGithubNotifications = require('open-github-notifications');
 
openGithubNotifications('ipfs', 'go-ipfs', 15);
//=> 'Now opening 15 notifications from ipfs/go-ipfs...''

API

openGithubNotifications(organization, repository, amount)

organization

Type: string

The organization to open.

repository

Type: string

The repository to get notifications for. This can also be included with the organization, with the syntax:

organization/repository

-a, amount

Type: int Default: 15.

The amount to open (cannot be more than 50 at once). This can also be provided as the last argument.

-p, participating

Type: flag Default: false.

CLI

$ npm install --global open-github-notifications
  Open GitHub notifications in your browser
 
  Usage
    $ open-github-notifications
    $ open-github-notifications <org> <repo> <amount>
    $ open-github-notifications <org>/<repo> <amount>
 
  Examples
    $ open-github-notifications
    Opened 15 notifications.
    $ open-github-notifications ipfs go-ipfs 15
    Opened 15 notifications.

License

MIT © Richard Littauer

Package Sidebar

Install

npm i open-github-notifications

Weekly Downloads

2

Version

0.0.8

License

MIT

Last publish

Collaborators

  • richardlitt