1.0.3 • Published 6 years ago

follow-url v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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.

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago