promisify-github
v1.0.6
Published
Manipulating resources on Github by promises super easily.
Downloads
4
Readme
#promisify-github
Manipulating resources on Github by promises super easily.
Usage
var github = require('promisify-github');
github
//.newRepo('gitlab','this is a new repo.')
.delRepo('gitlab')
.then(function (d) {
console.log('done->', d);
})
.catch(function (e) {
console.error('catch->', e);
})
API
- delRepo
/**
* @param {string} repo_name
* @return {promise}
*/
function delRepo(repo_name)
- newRepo
/**
* newRepo
* @param {string} repo_name
* @param {string} desc
* @return promise
*/
function newRepo(repo_name, desc)
This package is still under developing. of course, need your contribution.