0.0.1 • Published 10 years ago

it-works-create-destroy-github-repo v0.0.1

Weekly downloads
3
License
CC-BY-3.0
Repository
github
Last release
10 years ago

it-works-create-destroy-github-repo

A simple module to create and destroy github repo

Set up github personal access token

If you do not have a github personal token, you can create one at the Appplications page. You also need to check the scopes repo and delete_repo to use the create and destroy functions provided by this module. Then you should set environment variable GITHUB_TOKEN to the token given by github.

example

var github = require('it-works-create-destroy-github-repo');
function callback(error, response, body){
  if(error) console.log({error: error});
  if(response) console.log({response: response});
  if(body) console.log({body: JSON.parse(body)});
}

//github.create('test', callback);
//github.destroy('test', callback);
0.0.1

10 years ago

0.0.0

10 years ago