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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    0

Package Sidebar

Install

npm i lib-get-redirects

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • strawhouse