https://github.com/jopemachine/get-gh-downloads
Display github release download count in console (also include lib)
https://github.com/jopemachine/get-gh-downloads
cli download-counts github
Last synced: 2 months ago
JSON representation
Display github release download count in console (also include lib)
- Host: GitHub
- URL: https://github.com/jopemachine/get-gh-downloads
- Owner: jopemachine
- License: mit
- Created: 2021-08-09T04:21:44.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-09T08:37:59.000Z (almost 5 years ago)
- Last Synced: 2025-07-31T03:45:42.518Z (12 months ago)
- Topics: cli, download-counts, github
- Language: JavaScript
- Homepage:
- Size: 89.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# get-gh-downloads
[](http://badge.fury.io/js/get-gh-downloads)
[](http://badge.fury.io/js/get-gh-downloads)
[](https://lbesson.mit-license.org/)
Display github release download count in console (also include lib)

## Usage
```js
const getDownloadCount = require('get-gh-downloads');
const data = getDownloadCount({
userId,
repository,
tagName: 'v0.0.1'
});
```
## Usage-cli
```
Usage
$ get-gh-downloads [user_id] [repository_name] options
Options
$ name
$ tag
$ latest
Example:
$ get-gh-downloads jopemachine some-lib
$ get-gh-downloads jopemachine some-lib --name=0.0.1
$ get-gh-downloads jopemachine some-lib --tag=v0.0.1
$ get-gh-downloads jopemachine some-lib --latest
✔ Works done!
╔════════════════════════════════════════════╗
║ ║
║ Name: 0.0.1, Tag: v0.0.1 ║
║ Assets: ║
║ some_file.app: 1 ║
║ ║
║ Total: 1 ║
║ ║
╚════════════════════════════════════════════╝
Total: 1
```