gh-client

Minimal streaming client for the github API

npm install gh-client
4 downloads in the last week
8 downloads in the last month

gh-client

Minimal streaming client for the github API

Build Status

Usage

var github = require('gh-client')();
var request = github({
    method: 'GET',
    uri:    '/users/octocat'
}).pipe(process.stdout);

request.on('error', function (err) {
    // Oh noes! 
});

Callback

var github = require('gh-client')();
var request = github({
    method: 'GET',
    uri:    '/users/octocat'
}, function (err, body) {
    console.log(body);
});
npm loves you