@simonwep/github-contributions
v0.1.0
Published
Simple util to parse the contributions from a GitHub user.
Downloads
4
Readme
GitHub Contrubution's Parser
Simple util to parse the contributions from a GitHub user.
Usage
const contributions = require('@simonwep/github-contributions');
(async () => {
const years = contributions({
username: 'Simonwep',
year: 2018, // Default: Fetch all years where the user made contributions
parseDate: false, // Parse the contribution date to ISO, default: false
});
console.log(years);
})();
Output:
[
{
"year": 2018,
"total": 992,
"days": [
{
"date": "2017-12-31T00:00:00.000Z",
"count": 0
},
...
]
}
]