shorty-client

A simple wrapper around superagent to shorten URLs.

shorty-client

A simple wrapper around superagent to shorten URLs.

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