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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    1
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i shortened-url-resolver

Weekly Downloads

1

Version

1.0.2

License

LGPL-3.0

Last publish

Collaborators

  • thibaultfriedrich