2.0.1 • Published 6 months ago

@christianesk/github-calendar v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

npm Version GitHub License

This project returns a calendar of contributions de Github in a <div>...</div> format depending on the user and year chosen.

Content

Installation

npm i @christianesk/github-calendar

TS Example

import { getGithubCalendar } from "@christianesk/github-calendar";

const getCalendar = async () => {
   
    return await getGithubCalendar("christianesk", "2020");
} 

/*Returns an Object with these parameters:
    //Example
    { 
        textContributions: "256 contributions in 2020"      
        calendar: "<div>...</div>",
    }
*/

JS Example

const getGithubCalendar = require("@christianesk/github-calendar");

const getCalendar = async () => {
   
    return await getGithubCalendar("christianesk", "2020");
} 

/*Returns an Object with these parameters:
    //Example
    { 
        textContributions: "256 contributions in 2020"      
        calendar: "<div>...</div>",
    }
*/

Implementation examples

Using cloudflare workers

Fetch cloudflare workers with Angular

Styles CSS to github calendar

Using Framework Astro

Authors

License

MIT © Stkngesk

2.0.0-alpha.1

6 months ago

2.0.1

6 months ago

2.0.0

6 months ago

1.9.5

3 years ago

1.9.4

3 years ago

1.9.3

3 years ago

1.9.2

3 years ago

1.9.1

3 years ago

1.9.0

3 years ago

1.8.0

3 years ago

1.7.0

3 years ago

1.6.0

3 years ago

1.5.0

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago