gh-calendar-scraper
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

gh-calendar-scraper

Scrapes a users GitHub contributions calendar Github calendar example

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>

Package Sidebar

Install

npm i gh-calendar-scraper

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

43.6 kB

Total Files

36

Last publish

Collaborators

  • arsamsarabi