Parses the Contribution graph to count the current streak of a GitHub user.
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'
}
MIT License
Copyright (c) 2020 David Barton