shortened-url-resolver
v1.0.2
Published
Find final url from shortened url.
Downloads
9
Readme
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.