The Gitzz is a JavaScript library that helps you easily parse Github's commit data.
npm install gitzz
yarn add gitzz
// Getting today commit count
const todayCommit: number = await getDayCommitCount('username')
// All methods in gitzz return null on invalid requests.
if (!todayCommit) throw something...
// and enjoy it
console.log(todayCommit)
- Getting commit counts via
getDayCommitCount
,getYesterdayCommitCount
,getMonthCommitCount
,getYearCommitCount
- Parsing Github page for using jquery
requestUserToGithub
,requestOrgToGithub
- also, you can get all commit stats with a method
getCommitStatistics
- need organization's commit count? use
getOrganizationCommitCount
gitzz is licensed under a MIT License.