npm.io
0.0.2 • Published 12 years ago

gh-client

Licence
MIT
Version
0.0.2
Deps
1
Vulns
0
Weekly
0
Stars
2

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

Keywords