2.3.0 • Published 7 years ago

gitio v2.3.0

Weekly downloads
8
License
MIT
Repository
github
Last release
7 years ago

gitio

A Node.js module to call GitHub's git.io url shortener service.

Library Usage

const gitio = require('gitio');

// Pass a direct URL and get back a random URL
gitio('https://github.com/tanepiper/node-gitio').then(result => {
  console.log(result);
});

// Pass an optional key to get the URL of your request
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]
2.3.0

7 years ago

2.2.1

7 years ago

2.1.1

9 years ago

2.1.0

9 years ago

2.0.0

9 years ago

1.0.1

12 years ago

1.0.0

12 years ago