Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bjarneo/follow-url
Follow an URL redirect chain to the end of life
https://github.com/bjarneo/follow-url
long-url url url-shortener
Last synced: 3 days ago
JSON representation
Follow an URL redirect chain to the end of life
- Host: GitHub
- URL: https://github.com/bjarneo/follow-url
- Owner: bjarneo
- Created: 2018-08-09T09:16:25.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-09T09:45:26.000Z (over 6 years ago)
- Last Synced: 2024-08-10T21:15:46.440Z (3 months ago)
- Topics: long-url, url, url-shortener
- Language: JavaScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
followFollow an URL redirect chain to the end of life
Installation
------
```
npm i -g follow-url
```Usage
------![follow-url](https://i.imgur.com/TVboqlg.png)
```bash
$ follow https://bit.ly/2nphub2Following 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.
```js
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.