Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 8, 2024 via pnpm

follow-redirects 1.15.2

HTTP and HTTPS modules that follow redirects.
Package summary
Share
4
issues
4
moderate severity
vulnerability
4
1
license
1
MIT
Package created
15 Nov 2012
Version published
13 Sep 2022
Maintainers
2
Total deps
1
Direct deps
0
License
MIT

Issues

4

4 moderate severity issues

moderate
Recommendation: Upgrade to version 1.15.4 or later
via: follow-redirects@1.15.2
Recommendation: Upgrade to version 1.15.6 or later
via: follow-redirects@1.15.2
Recommendation: Upgrade to version 1.15.4 or later
via: follow-redirects@1.15.2
Recommendation: Upgrade to version 1.15.6 or later
via: follow-redirects@1.15.2
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
follow-redirects@1.15.2
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of follow-redirects 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does follow-redirects do?

Follow-Redirects is a drop-in replacement for Node's http and https modules providing automatic redirection following features. It's an incredibly useful package when you want your HTTP or HTTPS request methods to seamlessly follow redirects without any additional coding required.

How do you use follow-redirects?

Follow-Redirects is simple to use. Here's a basic usage example:

const { http, https } = require('follow-redirects');

http.get('http://bit.ly/900913', response => {
  response.on('data', chunk => {
    console.log(chunk);
  });
}).on('error', err => {
  console.error(err);
});

In this code, an HTTP GET request is made. If the requested URL redirects to another URL, the request will automatically follow the redirection.

To inspect the final redirected URL, you can use the responseUrl property. Here's an example:

const request = https.request({
  host: 'bitly.com',
  path: '/UHfDGO',
}, response => {
  console.log(response.responseUrl);
  // 'http://duckduckgo.com/robots.txt'
});
request.end();

In this case, the responseUrl will return the final URL where the original URL was redirected to. If no redirection took place, responseUrl will be the original request URL.

Where are the follow-redirects docs?

The comprehensive Follow-Redirects documentation can be found on their GitHub repo. It includes comprehensive details on usage, options, advanced usage, and more, making it easier for users to understand and implement the package accurately.