</>PackageGraphPackageGraph

follow-redirects

npmv1.16.0

HTTP 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.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

30 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

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.

javascriptFull 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.

PackageWeekly downloadsDependentsLicenseLast release
follow-redirectsthis page91.6M2MIT4 months ago
undici158.5M15MIT1 day ago
axios106.5M4MIT1 day ago
cross-fetch32.9M2MIT1 day ago
@mswjs/interceptors20.3M1MIT1 day ago
requestdeprecated12.5M4Apache-2.01 day ago

Dependencies

Declared by follow-redirects v1.16.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (6)

concat-stream ^2.0.0eslint ^5.16.0express ^4.16.4lolex ^3.1.0mocha ^6.0.2nyc ^14.1.1

Used by

Popular packages that depend on follow-redirects.

Relationship graph

Dependencies (left) and dependents (right) of follow-redirects.

axios@mswjs/intercepto…follow-redirects
follow-redirects dependencies dependents

Frequently installed together

Release history

3 releases in the last two years, typically about 39 days apart.

Recent versions of follow-redirects
VersionPublishedSizeLicense
1.16.0latest4 months ago30 KBMIT
1.15.111 year ago29 KBMIT
1.15.101 year ago29 KBMIT
1.15.92 years ago29 KBMIT
1.15.82 years ago29 KBMIT
1.15.72 years ago30 KBMIT
1.15.62 years ago29 KBMIT
1.15.52 years ago29 KBMIT
1.15.42 years ago29 KBMIT
1.15.33 years ago28 KBMIT
1.15.24 years ago28 KBMIT
1.15.14 years ago27 KBMIT
1.15.04 years ago27 KBMIT
1.14.94 years ago26 KBMIT
1.14.84 years ago26 KBMIT

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

Keywords

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.