Async (with callback api) check through github api if branch exists in the user/repo
, you can use user/repo[#branch]
for the check
Install
npm i --save online-branch-exist
npm test
Usage
For more use-cases see the tests
var onlineBranchExist = require('online-branch-exist');
onlineBranchExist('tunnckoCore/koa-better-body#master', function(err, res) {
if (err) {
console.error(err);
return;
}
console.log(res);
})
Author
Charlike Mike Reagent
License
Copyright (c) 2014-2015 Charlike Mike Reagent, contributors.
Released under the MIT
license.
Powered and automated by kdf, January 30, 2015