Skip to content

bjarneo/follow-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

follow-url

follow

Follow an URL redirect chain to the end of life

Installation

npm i -g follow-url

Usage

follow-url

$ follow https://bit.ly/2nphub2

Following https://bit.ly/2nphub2

# URLs
0 https://bit.ly/2nphub2
1 http://ow.ly/W7oOu
2 http://bjarneo.codes/

follow-url by https://github.com/bjarneo

Programmatically usage

npm i --save follow-url

The function returns a promise.

const followUrl = require('follow-url');

followUrl('https://bit.ly/2nphub2').then(console.log);

/*
[
    'https://bit.ly/2nphub2',
    'http://ow.ly/W7oOu',
    'http://bjarneo.codes/'
]
*/

Contribution

Contributions are appreciated.

License

MIT-licensed. See LICENSE.

About

Follow an URL redirect chain to the end of life

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published