1.0.0 • Published 7 years ago

lib-get-redirects v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

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