0.0.1 • Published 5 years ago

@hyperjumptech/export-github-clones-views v0.0.1

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
5 years ago

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