# github-contrib-stats

> Retrieve GitHub total contribution count and streaks

Latest version **1.0.1** (published 2017-03-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install github-contrib-stats
pnpm add github-contrib-stats
yarn add github-contrib-stats
bun add github-contrib-stats
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-03-15 |
| First published | 2017-03-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 7.7.0 |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | darkturtle |
| Maintainers | clthck |
| Keywords | github, contributions, stats, node-js |

## Links

- npm: https://www.npmjs.com/package/github-contrib-stats
- Repository: https://github.com/clthck/github-contrib-stats
- Homepage: https://github.com/clthck/github-contrib-stats#readme
- Issues: https://github.com/clthck/github-contrib-stats/issues
- npm.io page: https://npm.io/package/github-contrib-stats

## Dependencies (3)

- [moment](https://npm.io/package/moment.md) ^2.17.1
- [cheerio](https://npm.io/package/cheerio.md) ^0.22.0
- [requestify](https://npm.io/package/requestify.md) ^0.2.5

## Recent versions

- 1.0.1 (latest) — 2017-03-15
- 1.0.0 — 2017-03-15

## README

# github-contrib-stats
Retrieve GitHub total contribution count and streaks.

## Prerequisites
This requires Node.js v7.7.0 or greater.

## Installation
```
npm install --save github-contrib-stats
```

## Usage
```js
const getGhContribStats = require(‘github-contrib-stats’);

async function test() {
  try {
    const stats = await getGhContribStats('clthck');
    console.log(stats);
  } catch (err) {
    console.error(err, err.stack);
  }
}

test();
```

Output will be in the following format:
```js
{
  basicUserData: { ... }, // Find more details at https://api.github.com/users/clthck
  contributionStats: {
    totalContributions: 857,
    todaysContributions: 9,
    currentStreak: 4,
    longestStreak: 24
  }
}
```

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