lib-get-redirects
v1.0.0
Published
Get a list of 3xx redirects back from a request.
Downloads
5
Readme
lib-get-redirects
A simple package for getting the list of redirects a request followed. Returns an array of redirects, sorted from your request URL to your destination URL.
Usage
const getRedirects = require('lib-get-redirects');
getRedirects('http://google.ca').then(list => {
console.log(list); // ['http://google.ca', 'http://www.google.com/']
});