it-works-create-destroy-github-repo
v0.0.1
Published
A simple module to create and destroy github repo
Downloads
1
Readme
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);