Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 20 days 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 (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-08-09T08:37:59.000Z (over 3 years ago)
- Last Synced: 2024-11-09T09:54:14.265Z (3 months ago)
- Topics: cli, download-counts, github
- Language: JavaScript
- Homepage:
- Size: 89.8 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# get-gh-downloads
[![NPM download total](https://img.shields.io/npm/dt/get-gh-downloads)](http://badge.fury.io/js/get-gh-downloads)
[![NPM version](https://badge.fury.io/js/get-gh-downloads.svg)](http://badge.fury.io/js/get-gh-downloads)
[![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://lbesson.mit-license.org/)Display github release download count in console (also include lib)
![](./media/demo.png)
## 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
$ latestExample:
$ 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
```