follow
Follow an URL redirect chain to the end of life
Installation
npm i -g follow-url
Usage
$ follow https://bit.ly/2nphub2 Following https://bit.ly/2nphub2 # URLs 0 https://bit.ly/2nphub21 http://ow.ly/W7oOu2 http://bjarneo.codes/ follow-url by https://github.com/bjarneo
Programmatically usage
npm i --save follow-url
The function returns a promise.
const followUrl = ; ; /*[ 'https://bit.ly/2nphub2', 'http://ow.ly/W7oOu', 'http://bjarneo.codes/']*/
Contribution
Contributions are appreciated.
License
MIT-licensed. See LICENSE.