npm.io
1.0.0 • Published 11 years agoCLI

gi

Licence
Version
1.0.0
Deps
2
Vulns
0
Weekly
0
Stars
1

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 gi

Usage

var gi = require( 'gi' );

gi(originalURL, function(err, shortURL){});

Test

$ npm test

Command 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 gi

You can use it like any other command:

$ gi [url]
$ gi github.com/jameswomack
$ gi https://github.com/jameswomack