Get a Github repository's info
Install
$ npm install --save gh-repo
Usage
var repo = require('gh-repo');
repo({ username: "torvalds", repo: "linux" }, function(data) {
console.log('ID: ' + data.id);
console.log('Repo name: ' + data.name);
console.log('Description: ' + data.description);
console.log('Owner: ' + data.owner.login);
console.log('Created at: ' + data.created_at);
console.log('Open issues: ' + data.open_issues_count);
});
API
repo(username, repo)
username
Required
Type: string
GitHub username.
repo
Required
Type: string
GitHub repository.
License
MIT © Gabriel Montalvo