linkfollower

Node.js based command line utility that lets you follow redirects to see where http URLs end up. Useful for shortened URLs.

Usage no npm install needed!

<script type="module">
  import linkfollower from 'https://cdn.skypack.dev/linkfollower';
</script>

README

linkfollower

master

npm version

Node.js based command line utility for finding out where a shortened (or any other) HTTP URL end up. Follows up to 10 redirects. Now also adds User-Agent header to requests since Facebook won't redirect unsupported browsers from fb.me addresses.

Installation

npm install -g linkfollower

Usage

follow http://tinyurl.com/m3q2xt

Result

http://tinyurl.com/m3q2xt -> 301
http://en.wikipedia.org/wiki/URL_shortening -> 301
https://en.wikipedia.org/wiki/URL_shortening -> 200