Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (22 sloc) 588 Bytes

Unshorten

A simple URL unshortener for Node.js.

Example usage

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!');
});

Credits

Made for fun (and to get more familiar with Node) by Mathias.