30 lines
511 B
Markdown
30 lines
511 B
Markdown
# @snk/github-user-contribution
|
|
|
|
Get the github user contribution graph
|
|
|
|
## Usage
|
|
|
|
```js
|
|
const { cells, colorScheme } = await getGithubUserContribution("platane");
|
|
|
|
// colorScheme = [
|
|
// "#ebedf0",
|
|
// "#9be9a8",
|
|
// ...
|
|
// ]
|
|
// cells = [
|
|
// {
|
|
// x: 3,
|
|
// y: 0,
|
|
// count: 3,
|
|
// color: '#ebedf0',
|
|
// date:'2019-01-18'
|
|
// },
|
|
// ...
|
|
// ]
|
|
```
|
|
|
|
## Implementation
|
|
|
|
Based on the html page. Which is very unstable. Might switch to using github api but afaik it's a bit complex.
|