A (node)JS module for efficiently resolving HTTP/HTTPS redirects.
Unlike the competition, this module does not perform a full HTTP request, but rather performs an HTTP HEAD request in order to receive the headers only.
Only in cases where the server misbehaves (😮💨Amazon😮💨) it falls back to good old, but heavy, HTTP GET.
Also, there are no dependencies.
npm install resolve-redirects-efficient
import resolveRedirect from 'resolve-redirect-efficient'
resolveRedirect('http://bit.ly/1TCI5N0')
.then(url => console.log(url))
This is heavily based on the now defunct resolve-redirect by @Cezary.
Come say hello @ devsbedevin.net
MIT