0.1.12 • Published 10 years ago

resolver v0.1.12

Weekly downloads
565
License
BSD
Repository
-
Last release
10 years ago

Resolver

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

http://bit.ly/PWoeXs

will be resolved into

http://www.andrisreinman.com/post/15668406504/eesti-saitide-kodeeringud

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

Installation

npm install resolver

Usage

Use resolver.resolve(url, callback)

var resolver = require("resolver");

resolver.resolve("http://bit.ly/PWoeXs", function(err, url, filename, contentType){
    console.log(err || url);
});

License

MIT

0.1.12

10 years ago

0.1.11

11 years ago

0.1.10

11 years ago

0.1.9

11 years ago

0.1.8

11 years ago

0.1.7

11 years ago

0.1.6

12 years ago

0.1.5

12 years ago

0.1.4

12 years ago

0.1.3

12 years ago

0.1.2

12 years ago

0.1.1

12 years ago

0.1.0

12 years ago