npm install node-gh-repo-puller
var puller = require('node-gh-repo-puller');
puller({
user: "miskun",
repo: "node-gh-repo-puller",
dir: "sample",
target: "pulled-from-github"
}, function (err, result) {
if(!err){
console.log("Done! Check 'pulled-from-github' directory");
} else {
console.log(err);
}
});
MIT