npm.io
1.0.0 • Published 9 years ago

lib-get-redirects

Licence
MIT
Version
1.0.0
Deps
2
Vulns
0
Weekly
0

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/']
});