0.0.2 • Published 3 years ago
get-gh-downloads v0.0.2
get-gh-downloads
Display github release download count in console (also include lib)
Usage
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