node package manager
Easy collaboration. Discover, share, and reuse code in your team. Create a free org »

gh-streak

gh-streak

This module no longer works since it pulled streaks from the contribution graph which has been removed.

NPM Build Status

Install

cli: npm install -g gh-streak

module: npm install gh-streak --save

Usage

cli: gh-streak <username>

module:

var ghStreak = require('gh-streak');
 
ghStreak(username, function (err, count, year) {
    if (err) {
        // No user or streak could be found 
    } else {
        console.log('The streak is', count);
        console.log('Contributions for year', year);
    }
});