lib-get-redirects

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i lib-get-redirects

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • strawhouse