gitio

Library for nodejs to call the git.io URL shortner

npm install gitio
7 downloads in the last day
51 downloads in the last week
187 downloads in the last month

Nodejs git.io module

A simple module to call the git.io url shortner service with nodejs, the module returns a simple object with the status code and URL if created.

Usage

var gitio = require('gitio');

// Pass a direct URL and get back a random URL
gitio('https://github.com/tanepiper/node-gitio', function(err, data) {
  var url = data.url;
});

// Pass an optional key to get the URL of your request
gitio('https://github.com/joyent/node', 'nodejs', function(err, data) {
  var url = data.url;
});
npm loves you