shortened-url-resolver

1.0.2 • Public • Published

shortened-url-resolver

Find final url from shortened url.

How to install ?

npm install shortened-url-resolver --save

Easy to use

var shortenedUrlResolver = require('shortened-url-resolver');
shortenedUrlResolver('http://bit.ly/1pfckwC', function(error, finalUrl){
    if(error){
        console.log(error); // if url is inaccessible or not shortened
    } else {
        console.log(finalUrl); // finalUrl == https://github.com/ThibaultFriedrich/shortened-url-resolver 
    }
});

Services tested

For now, I have only tested following services :

  • goo.gl
  • bit.ly
  • ow.ly
  • ift.tt
  • tinyurl.com
  • dlvr.it

Let me know if some others also work.

Readme

Keywords

Package Sidebar

Install

npm i shortened-url-resolver

Weekly Downloads

3

Version

1.0.2

License

LGPL-3.0

Last publish

Collaborators

  • thibaultfriedrich