# get-gh-downloads

> Display github release download in console (also include lib)

Latest version **0.0.2** (published 2021-08-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install get-gh-downloads
pnpm add get-gh-downloads
yarn add get-gh-downloads
bun add get-gh-downloads
```

Provides the command `get-gh-downloads`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2021-08-09 |
| First published | 2021-08-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 8 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| Author | jopemachine |
| Maintainers | jopemachine |
| Keywords | github, github release, stat, downloads, cli |

## Links

- npm: https://www.npmjs.com/package/get-gh-downloads
- npm.io page: https://npm.io/package/get-gh-downloads

## Dependencies (6)

- [ora](https://npm.io/package/ora.md) ^5.4.1
- [meow](https://npm.io/package/meow.md) ^9.0.0
- [axios](https://npm.io/package/axios.md) ^0.21.1
- [boxen](https://npm.io/package/boxen.md) ^5.0.1
- [chalk](https://npm.io/package/chalk.md) ^4.1.1
- [camelcase](https://npm.io/package/camelcase.md) ^6.2.0

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2021-08-09
- 0.0.1 — 2021-08-09

## 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
    $ 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
```

---
_Source: https://npm.io/package/get-gh-downloads · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
