@hyperjumptech/export-github-clones-views
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

export-github-clones-views

oclif Version Downloads/week License

About

This is a CLI to fetch the daily number of clones and views of one or many github repositories. You can run this script regularly to track the traffic of clones and views of your repositories in a long term since the data shown in a Github repository website cannot be exported and only shows up to few days back.

Prerequisite

  1. Create a Personal Access Token in your Github settings.
  2. Optionally run a mongodb server to store the data.

Install

$ npm install -g export-github-clones-views

Usage

To simply print the data to console, run the following

$ export-github-clones-views -u <GITHUB_USERNAME> -p <GITHUB_PASSWORD> user/reponame1 organization/reponame2 ...

To store the data to mongodb, provide the mongodb uri,

$ export-github-clones-views -u <GITHUB_USERNAME> -p <GITHUB_PASSWORD> -m <MONGODB_URI> user/reponame1 organization/reponame2 ...

Notes:

  1. You can add any number of repositories as the argument of the command.
  2. The repository needs to include both the username/organization and the repository name, e.g., hyperjumptech/export-github-clones-views

Readme

Keywords

Package Sidebar

Install

npm i @hyperjumptech/export-github-clones-views

Weekly Downloads

1

Version

0.0.1

License

Apache-2.0

Unpacked Size

22.1 kB

Total Files

12

Last publish

Collaborators

  • khermawan
  • nico-hyperjump
  • rafel
  • haricnugraha
  • budhi_npm
  • raosanfl
  • gregoryhyperjump
  • satriyopranoto
  • garychristianto