Node.js library for SmallURL
var SmallURL = require("smallurl");
var shortener = new SmallURL(); // Accepts key as arg
shortener.shorten("http://google.com", function(err, url) {
console.log(url);
});
To install, just use npm.
npm install smallurl