Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andrewsomething/github-download-stats
CLI to fetch download statistics for GitHub releases
https://github.com/andrewsomething/github-download-stats
analytics github go hacktoberfest
Last synced: 5 days ago
JSON representation
CLI to fetch download statistics for GitHub releases
- Host: GitHub
- URL: https://github.com/andrewsomething/github-download-stats
- Owner: andrewsomething
- License: mit
- Created: 2019-03-15T19:31:51.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-10-20T22:11:13.000Z (25 days ago)
- Last Synced: 2024-10-21T01:50:23.270Z (25 days ago)
- Topics: analytics, github, go, hacktoberfest
- Language: Go
- Homepage:
- Size: 375 KB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# github-download-stats [![Actions Status](https://github.com/andrewsomething/github-download-stats/workflows/Test/badge.svg)](https://github.com/andrewsomething/github-download-stats/actions)
Download statistics for GitHub release assets are only available via the API. `github-download-stats` is a command line utility to fetch them for a specific repository.
## Installation
Pre-built binaries for Linux, macOS, and Windows are available in the [releases tab](https://github.com/andrewsomething/github-download-stats/releases).
Docker images are also available:
docker run andrewsomething/github-download-stats
`github-download-stats` can be installed from source by running:
#### Go Version 1.16 and Earlier
```
go get -u github.com/andrewsomething/github-download-stats
```#### Go Version 1.17 and Later
```
go install github.com/andrewsomething/github-download-stats@latest
```## Usage
```
Usage of ./github-download-stats:
-api-endpoint string
API endpoint for use with GitHub Enterprise
-json
Output in JSON
-owner string
The GitHub repository's owner (required)
-release string
The tag name of the release; excluding will list all releases
-repo string
The GitHub repository (required)
-token string
GitHub API token (default "")
-version
Print version
```
### Usage for Get Stats for All Releases```
github-download-stats -owner -repo -token
```
### Usage for Get Stats for Specific Releases```
github-download-stats -owner -repo -release -token
```
### Usage for Get Stats in JSON```
github-download-stats -owner -repo -json -token
```## License
`github-download-stats` is available via the MIT license.