</>PackageGraphPackageGraph

node-fetch

npmv3.3.2TypeScript

A light-weight module that brings Fetch API to node.js

Not recommended for new projects

No — node-fetch should not be adopted for new projects. Last published 1142 days ago.

  • AAdoption: grade A, Excellent.

    172.9M downloads per week and 9 known dependents.

  • FMaintenance: grade F, Failing.

    Last published 1142 days ago.

  • AWeight: grade A, Excellent.

    Pulls in 4 transitive packages, about 180 KB installed.

  • ASupply chain: grade A, Excellent.

    No install scripts, 5 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 node-fetch to a project.

3
Direct dependencies

Runtime packages this one declares itself.

4
Total installed

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

180 KB
Install size

Unpacked size of this package plus its entire runtime tree.

2
Tree depth

Longest resolved dependency chain below this package.

Licenses in the dependency tree

MIT

Every license you inherit by installing node-fetch, not just its own. Check this before a legal review, not after.

Compatibility

Node.js
node ^12.20.0 || ^14.13.1 || >=16.0.0
Module format
ESM only
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the node-fetch README.

import fetch from 'node-fetch';

node-fetch vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
node-fetchthis page172.9M9MIT3 years ago
undici158.5M15MIT1 day ago
cross-fetch32.9M2MIT1 day ago
axios106.5M4MIT1 day ago
@mswjs/interceptors20.3M1MIT1 day ago
make-fetch-happen22.8M1ISC1 day ago

Dependencies

Declared by node-fetch v3.3.2. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (16)

abort-controller ^3.0.0abortcontroller-polyfill ^1.7.1busboy ^1.4.0c8 ^7.7.2chai ^4.3.4chai-as-promised ^7.1.1chai-iterator ^3.0.2chai-string ^1.5.0coveralls ^3.1.0form-data ^4.0.0formdata-node ^4.2.4mocha ^9.1.3p-timeout ^5.0.0stream-consumers ^1.0.1tsd ^0.14.0xo ^0.39.1

Used by

Popular packages that depend on node-fetch.

Relationship graph

Dependencies (left) and dependents (right) of node-fetch.

Frequently installed together

Release history

No releases in the last two years, typically about 24 days apart.

Recent versions of node-fetch
VersionPublishedSizeLicense
2.7.03 years ago158 KBMIT
2.6.133 years ago158 KBMIT
3.3.2latest3 years ago105 KBMIT
2.6.123 years ago158 KBMIT
2.6.113 years ago158 KBMIT
2.6.103 years ago158 KBMIT
3.3.13 years ago105 KBMIT
2.6.93 years ago158 KBMIT
2.6.83 years ago158 KBMIT
3.3.03 years ago105 KBMIT
3.2.104 years ago104 KBMIT
3.2.94 years ago104 KBMIT
3.2.84 years ago104 KBMIT
3.2.74 years ago104 KBMIT
3.2.64 years ago104 KBMIT

Overview

node-fetch is an npm package that a light-weight module that brings Fetch API to node.js. It is extremely widely used, with about 172.9M downloads per week and 9 known dependents in the graph. The latest version is 3.3.2, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need a light-weight module that brings Fetch API to node.js and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.

Pros

  • Large, well-established user base (172.9M weekly downloads).
  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • Large dependency tree (19 direct dependencies) increases install size and audit surface.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Funding

Frequently asked questions

Should I use node-fetch?

No — node-fetch should not be adopted for new projects. Last published 1142 days ago.

How do I install node-fetch?

Run `npm install node-fetch` to add node-fetch to your npm project.

How many dependencies does node-fetch have?

node-fetch declares 19 direct dependencies and pulls in 4 packages in total once its runtime tree is resolved totalling about 180 KB on disk.

What license is node-fetch released under?

node-fetch is distributed under the MIT license.

How popular is node-fetch?

node-fetch has approximately 172,888,825 downloads per week and 9 known dependent packages.

Is node-fetch still maintained?

The most recent release of node-fetch (v3.3.2) was published 3 years ago.

Does node-fetch run install scripts?

No. node-fetch does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.