2.0.0 • Published 3 years ago

github-streak-scraper v2.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

GitHub Streak Scraper

npm package Dependency Status

Parses the Contribution graph to count the current streak of a GitHub user.

Usage

Wrap githubStreakScraper('GitHub-user-name') in an async function/promise.

const getStreakData = async => {
  const githubStreak = await githubStreakScraper('theDavidBarton');
  console.log(githubStreak)
}
{
  user: 'theDavidBarton',
  currentlyOnStreak: true,
  currentStreakCount: 18,
  currentStreakStartDate: '2019-12-30'
}

License

MIT License

Copyright (c) 2020 David Barton

2.0.0

3 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago