Skip to content

Instantly share code, notes, and snippets.

@tcr
Last active December 10, 2015 14:19
Show Gist options
  • Save tcr/4446743 to your computer and use it in GitHub Desktop.
Save tcr/4446743 to your computer and use it in GitHub Desktop.
List a user's Github repos using Rem.
// npm install rem read
var rem = require('rem')
, read = require('read');
var github = rem.connect('github.com', 3.0)
read({ prompt: 'Username: '}, function (err, username) {
github('users', username, 'repos').get(function (err, repos) {
console.log(repos);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment