2.0.1 • Published 2 years ago

@christianesk/github-calendar v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years 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

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.9.5

4 years ago

1.9.4

4 years ago

1.9.3

4 years ago

1.9.2

4 years ago

1.9.1

4 years ago

1.9.0

4 years ago

1.8.0

4 years ago

1.7.0

4 years ago

1.6.0

4 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago