A simple URL unshortener for Node.js.
var unshorten = require('./unshorten.js');
unshorten('http://mths.be/unshorten', function(url) {
console.log(url + ' is where it’s at!');
});
…or, via npm:
npm install unshorten
…and then:
var unshorten = require('unshorten');
unshorten('http://mths.be/unshorten', function(url) {
console.log(url + ' is where it’s at!');
});
Made for fun (and to get more familiar with Node) by Mathias.