node package manager


Resolve URL's


Url resolver module for Node.JS

This module Resolves destination URLs. Feed it a source url and the resolver returns with the destination url if any redirects happened.

For example

will be resolved into

Also if the final url has google analytics params (utm_), these will be removed.

npm install resolver

Use resolver.resolve(url, callback)

var resolver = require("resolver");

resolver.resolve("", function(err, url, filename, contentType){
    console.log(err || url);