Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

URL unshortener for Node.js

branch: master
README.md

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.

Something went wrong with that request. Please try again.