1.0.1 • Published 3 years ago
gh-calendar-scraper v1.0.1
gh-calendar-scraper
Scrapes a users GitHub contributions calendar

Install
Install the package in your project.
$ yarn add gh-calendar-scraperUsage
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>