1.0.0 • Published 11 years ago
gi v1.0.0
gi
Shorten Github URLs with Github's Git.io service.
Features
- Pastes the url to your clipboard
- Require or use from the command line
- Works on all 3 major platforms
Installation
$ npm install giUsage
var gi = require( 'gi' );
gi(originalURL, function(err, shortURL){});Test
$ npm testCommand Line Usage
Installing the module locally (without the -g flag) requires a little more verbosity:
$ node path/to/gi [url]With a global installation:
$ npm install -g giYou can use it like any other command:
$ gi [url]
$ gi github.com/jameswomack
$ gi https://github.com/jameswomack