promotime
TypeScript icon, indicating that this package has built-in type declarations

3.0.3 • Public • Published

P-R-O-M-O-T-I-M-E

A tool for gathering GitHub stats!

npm version codecov Known Vulnerabilities semantic-release XO code style

Installation

$ npm install -g promotime

Usage

# Get your aggregate stats for the last year
$ promotime JustinBeckwith --start 2018-03-01 --end 2019-03-01

Sample Output

SELECT * FROM `githubarchive.month.*` WHERE actor.login='JustinBeckwith' AND created_at > '2018-03-01' AND created_at < '2019-03-01'
{ pullRequestsCreated: 2389,
  pullRequestCommentsMade: 1026,
  issuesClosed: 2833 }

Authentication

For now, this uses the Google Cloud SDK for authentication. I know, that's less than ideal. If anyone wants, I can add the code to do OAuth2 based auth.

  • Make sure you have the Cloud SDK installed.
  • $ gcloud auth login
  • $ gcloud auth application-default login

License

MIT

/promotime/

    Package Sidebar

    Install

    npm i promotime

    Weekly Downloads

    9

    Version

    3.0.3

    License

    MIT

    Unpacked Size

    5.79 kB

    Total Files

    4

    Last publish

    Collaborators

    • justinbeckwith