follow-redirects
npmv1.16.0HTTP and HTTPS modules that follow redirects.
Safe to adopt
Yes — follow-redirects scores well across adoption, maintenance, weight, supply chain, and licensing. 91.6M downloads per week and 2 known dependents. Last published 149 days ago. 3 releases in the last 2 years.
- AAdoption: grade A, Excellent.
91.6M downloads per week and 2 known dependents.
- BMaintenance: grade B, Good.
Last published 149 days ago. 3 releases in the last 2 years.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 30 KB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 2 maintainers, and a contained dependency surface.
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding follow-redirects to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- node >=4.0
- Module format
- CommonJS only
- TypeScript
- No bundled types
- Install scripts
- None
Quick start
A usage example from the follow-redirects README.
const { http, https } = require('follow-redirects');
http.get('http://en.wikipedia.org/', response => {
response.on('data', chunk => {
console.log(chunk);
});
}).on('error', err => {
console.error(err);
});follow-redirects vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| follow-redirectsthis page | 91.6M | 2 | MIT | 4 months ago |
| undici | 158.5M | 15 | MIT | 1 day ago |
| axios | 106.5M | 4 | MIT | 1 day ago |
| cross-fetch | 32.9M | 2 | MIT | 1 day ago |
| @mswjs/interceptors | 20.3M | 1 | MIT | 1 day ago |
| requestdeprecated | 12.5M | 4 | Apache-2.0 | 1 day ago |
Dependencies
Declared by follow-redirects v1.16.0. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (6)
Used by
Popular packages that depend on follow-redirects.
Relationship graph
Dependencies (left) and dependents (right) of follow-redirects.
Frequently installed together
Fast, unopinionated, minimalist web framework
Next generation testing framework powered by Vite
An HTTP(s) proxy `http.Agent` implementation for HTTPS
A high-level API to automate web browsers
Browser running for Vitest using playwright
A light-weight module that brings Fetch API to node.js
An HTTP/1.1 client, written from scratch for Node.js
Promise based HTTP client for the browser and node.js
Node.js body parsing middleware
node.js realtime framework server
TypeScript definitions for node
Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. It includes many web standards from WHATWG DOM and HTML.
Release history
3 releases in the last two years, typically about 39 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 1.16.0latest | 4 months ago | 30 KB | MIT |
| 1.15.11 | 1 year ago | 29 KB | MIT |
| 1.15.10 | 1 year ago | 29 KB | MIT |
| 1.15.9 | 2 years ago | 29 KB | MIT |
| 1.15.8 | 2 years ago | 29 KB | MIT |
| 1.15.7 | 2 years ago | 30 KB | MIT |
| 1.15.6 | 2 years ago | 29 KB | MIT |
| 1.15.5 | 2 years ago | 29 KB | MIT |
| 1.15.4 | 2 years ago | 29 KB | MIT |
| 1.15.3 | 3 years ago | 28 KB | MIT |
| 1.15.2 | 4 years ago | 28 KB | MIT |
| 1.15.1 | 4 years ago | 27 KB | MIT |
| 1.15.0 | 4 years ago | 27 KB | MIT |
| 1.14.9 | 4 years ago | 26 KB | MIT |
| 1.14.8 | 4 years ago | 26 KB | MIT |
Overview
follow-redirects is an npm package that hTTP and HTTPS modules that follow redirects. It is extremely widely used, with about 91.6M downloads per week and 2 known dependents in the graph. The latest version is 1.16.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need hTTP and HTTPS modules that follow redirects and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (91.6M weekly downloads).
- Clear open-source license (MIT).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Funding
Frequently asked questions
Should I use follow-redirects?
Yes — follow-redirects scores well across adoption, maintenance, weight, supply chain, and licensing. 91.6M downloads per week and 2 known dependents. Last published 149 days ago. 3 releases in the last 2 years.
How do I install follow-redirects?
Run `npm install follow-redirects` to add follow-redirects to your npm project.
What license is follow-redirects released under?
follow-redirects is distributed under the MIT license.
How popular is follow-redirects?
follow-redirects has approximately 91,615,138 downloads per week and 2 known dependent packages.
Is follow-redirects still maintained?
The most recent release of follow-redirects (v1.16.0) was published 4 months ago.
Does follow-redirects run install scripts?
No. follow-redirects does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.