0.0.1 • Published 10 years ago
tooljs-github v0.0.1
tooljs-github
Tooling to create GitHub repo.
Getting Started
First, you need to create an access token for command-line use on GitHub. Then copy the resulting API token, which looks something like this:
61a173086693b9cc513931cd71cee15f1813aeac
Then open ~/.bashrc
and add these two lines:
export GITHUB_USER=<yourusername>
export GITHUB_TOKEN=<yourtoken>
Then make sure to load up that script.
source ~/.bashrc
Now you should be ready to use the GitHub API from the command line!
API
var Repo = require('tooljs-github');
var repo = new Repo({
org: 'some-org',
repo: 'some-repo'
});
repo.exec(function(){
console.log('Created GitHub repo!');
});
0.0.1
10 years ago