gh-streak

Get your current GitHub streak.


Keywords
code, github, streak
License
MIT
Install
npm install gh-streak@2.0.0

Documentation

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);
    }
});