it-works-create-destroy-github-repo

0.0.1 • Public • Published

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);

/it-works-create-destroy-github-repo/

    Package Sidebar

    Install

    npm i it-works-create-destroy-github-repo

    Weekly Downloads

    1

    Version

    0.0.1

    License

    CC-BY-3.0

    Last publish

    Collaborators

    • ontouchstart