6.0.0 • Published 4 months ago

contribution v6.0.0

Weekly downloads
60
License
MIT
Repository
github
Last release
4 months ago

Contribution

🗓 GitHub contribution streak & stat fetcher with zero dependencies

build downloads version license

Install

npm install contribution

Usage

import { fetchStats } from 'contribution';

// Promise chaining
fetchStats('jamieweavis')
  .then((gitHubStats) => console.log(gitHubStats))
  .catch((error) => console.log(error));

// Try catch with async/await
try {
  const gitHubStats = await fetchStats('jamieweavis');
  console.info(gitHubStats);
} catch (error) {
  console.error(error);
}
interface GitHubStats {
  streak: {
    best: number;
    current: number;
    isAtRisk: boolean;
    previous: number;
  };
  contributions: {
    best: number;
    total: number;
    current: number;
  };
}

Related

  • Streaker - 🐙 GitHub contribution streak & stat tracking menu bar app
  • Streaker CLI - 🐙 GitHub contribution streak & stat tracking CLI app
5.3.1

4 months ago

6.0.0

4 months ago

5.3.0

7 months ago

5.2.0

2 years ago

5.1.1

2 years ago

5.1.0

2 years ago

5.0.3

2 years ago

5.0.2

2 years ago

5.0.1

2 years ago

5.0.0

2 years ago

4.1.1

4 years ago

4.1.0

5 years ago

4.0.3

5 years ago

4.0.2

5 years ago

4.0.1

5 years ago

4.0.0

5 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.2.0

6 years ago

2.1.0

6 years ago

2.0.0

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.14

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

0.0.1

8 years ago