follow-redirects-fast
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

Follow Redirect Fast

Follow redirect using barebone packages (tls and net) from NodeJS.

Supports Promise return

npm version Node.js CI

Example:

const followRedirects = require('follow-redirects-fast');

(async () => {
    const url = await followRedirects({ url: 'http://bit.ly/3K8720O', maxRedirects: 10, timeout: 5000 });
    console.log(url);
})();
  • Options List:
    • url (required): URL you want to follow redirect
    • maxRedirects (default: 5): Max Redirects you want to follow
    • timeout (default: 5000): Time in ms you want to wait until error

Readme

Keywords

none

Package Sidebar

Install

npm i follow-redirects-fast

Weekly Downloads

2

Version

1.1.2

License

MIT

Unpacked Size

8.33 kB

Total Files

13

Last publish

Collaborators

  • phamleduy04