1.0.6 • Published 8 years ago

promisify-github v1.0.6

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

#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.