node package manager
Easy sharing. Manage teams and permissions with one click. Create a free org »

shorty-client

shorty-client

A simple wrapper around superagent to shorten URLs.

Usage

var shorten = require('shorty-client')('http://shr.url');
// callback with arity = 2 
shorten('http://google.com', function(err, url){
  // if an error occurs, url = 'http://google.com' 
});