gh-calendar-scraper
v1.0.1
Published
Scrapes a users GitHub contributions calendar
Downloads
2
Maintainers
Readme
gh-calendar-scraper
Scrapes a users GitHub contributions calendar
Install
Install the package in your project.
$ yarn add gh-calendar-scraper
Usage
Import the "fetchGithubCalendar" function and pass in a GitHub username.
import { GithubCalendar, fetchGithubCalendar } from 'gh-calendar-scraper'
const calendar: GithubCalendar = await fetchGithubCalendar('username')
Types
Thit package also exports the following Typescript types:
type DayStats = {
x: number
y: number
rx: number
ry: number
count: number
date: string
level: number
}
type GithubCalendar = Array<DayStats>