gitio
A Node.js module to call GitHub's git.io url shortener service.
Library Usage
const gitio = require('gitio');
gitio('https://github.com/tanepiper/node-gitio').then(result => {
console.log(result);
});
gitio('https://github.com/joyent/node', 'nodejs').then(result => {
console.log(result);
});
API
gitio(url, [code])
url
Type: string
The github.com
URL to shorten.
code
Type: string
The shortened URL path.
Command line usage
Install and use from the command line. Takes a required github.com url, and an optional code as
a second parameter.
> npm install -g gitio
> gitio https://github.com/tanepiper [tanepiper]