@simonwep/github-contributions

0.1.0 • Public • Published

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
            },
            ...
        ]
    }
]

Readme

Keywords

Package Sidebar

Install

npm i @simonwep/github-contributions

Weekly Downloads

2

Version

0.1.0

License

MIT

Unpacked Size

3.39 kB

Total Files

3

Last publish

Collaborators

  • simonwep