Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

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.

Keywords

install

npm i shortened-url-resolver

Downloadsweekly downloads

4

version

1.0.2

license

LGPL-3.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability