UNPKG

contribution

Version:

GitHub contribution graph parser - contribution streak & statistic calculator with zero dependencies

21 lines (19 loc) 557 B
export interface GitHubStats { bestStreak: number; currentStreak: number; previousStreak: number; isStreakAtRisk: boolean; mostContributions: number; todaysContributions: number; totalContributions: number; contributions: Contributions; } export interface ContributionDay { contributions: number; gitHubLegendLevel: number; } export interface Contributions { [date: string]: ContributionDay; } export const fetchGitHubStats: (username: string) => Promise<GitHubStats>; //# sourceMappingURL=contribution.d.ts.map