node-fetch
npmv3.3.2TypeScriptA 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.
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.
Licenses in the dependency tree
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.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| node-fetchthis page | 172.9M | 9 | MIT | 3 years ago |
| undici | 158.5M | 15 | MIT | 1 day ago |
| cross-fetch | 32.9M | 2 | MIT | 1 day ago |
| axios | 106.5M | 4 | MIT | 1 day ago |
| @mswjs/interceptors | 20.3M | 1 | MIT | 1 day ago |
| make-fetch-happen | 22.8M | 1 | ISC | 1 day ago |
Dependencies
Declared by node-fetch v3.3.2. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (16)
Used by
Popular packages that depend on node-fetch.
Universal WHATWG Fetch API for Node, Browsers and React Native
A JavaScript implementation of the Unicode Bidirectional Algorithm
The official, opinionated, batteries-included toolset for efficient Redux development
Low-level network interception library for Node.js.
libSQL Wasm packaged as an ES module.
A bson parser for node.js and the browser
Provides a list of electron-to-chromium version mappings
A simple common HTTP client specifically for Google APIs and services.
A CSS parser, transformer, and minifier written in Rust
Relationship graph
Dependencies (left) and dependents (right) of node-fetch.
Frequently installed together
TypeScript definitions for node
Fast, unopinionated, minimalist web framework
An HTTP(s) proxy `http.Agent` implementation for HTTPS
Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
Promise based HTTP client for the browser and node.js
Next generation testing framework powered by Vite
Node.js CORS middleware
TypeScript definitions for cors
A JavaScript implementation of many web standards
A stand-alone types package for Undici
An HTTP/1.1 client, written from scratch for Node.js
Prettier is an opinionated code formatter
Release history
No releases in the last two years, typically about 24 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 2.7.0 | 3 years ago | 158 KB | MIT |
| 2.6.13 | 3 years ago | 158 KB | MIT |
| 3.3.2latest | 3 years ago | 105 KB | MIT |
| 2.6.12 | 3 years ago | 158 KB | MIT |
| 2.6.11 | 3 years ago | 158 KB | MIT |
| 2.6.10 | 3 years ago | 158 KB | MIT |
| 3.3.1 | 3 years ago | 105 KB | MIT |
| 2.6.9 | 3 years ago | 158 KB | MIT |
| 2.6.8 | 3 years ago | 158 KB | MIT |
| 3.3.0 | 3 years ago | 105 KB | MIT |
| 3.2.10 | 4 years ago | 104 KB | MIT |
| 3.2.9 | 4 years ago | 104 KB | MIT |
| 3.2.8 | 4 years ago | 104 KB | MIT |
| 3.2.7 | 4 years ago | 104 KB | MIT |
| 3.2.6 | 4 years ago | 104 KB | MIT |
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.
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.