whatwg-fetch
npmv3.6.20A window.fetch polyfill.
Adopt with care
whatwg-fetch is usable, with caveats. Last published 1001 days ago.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- DMaintenance: grade D, Poor — a real concern.
Last published 1001 days ago.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 56 KB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 3 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 whatwg-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.
Compatibility
- Node.js
- No constraint declared
- Module format
- ESM + CommonJS
- TypeScript
- No bundled types
- Install scripts
- None
Quick start
A usage example from the whatwg-fetch README.
import 'whatwg-fetch'
window.fetch(...)Dependencies
Declared by whatwg-fetch v3.6.20. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (17)
Used by
Popular packages that depend on whatwg-fetch.
Universal WHATWG Fetch API for Node, Browsers and React Native
A framework for building native apps using React
Tools for making advanced Metro bundler features work
Snapshotable JavaScript runtime via WebAssembly. QuickJS-NG compiled to WASM with snapshot/restore support.
Relationship graph
Dependencies (left) and dependents (right) of whatwg-fetch.
Frequently installed together
React package for working with the DOM.
Error overlay for universal Expo apps.
The Expo SDK
React is a JavaScript library for building user interfaces.
A low level parser for ANSI sequences.
Stringify any JavaScript value.
TypeScript definitions for react
Parses every stack trace into a nicely formatted array of hashes.
A framework for building native apps using React
Provides system information that remains constant throughout the lifetime of your app.
TypeScript definitions for node
An extremely fast JavaScript and CSS bundler and minifier.
Release history
No releases in the last two years, typically about 0 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 3.6.20latest | 2 years ago | 56 KB | MIT |
| 3.6.19 | 3 years ago | 56 KB | MIT |
| 3.6.18 | 3 years ago | 56 KB | MIT |
| 3.6.17 | 3 years ago | 56 KB | MIT |
| 3.6.16 | 3 years ago | 56 KB | MIT |
| 3.6.15 | 3 years ago | 56 KB | MIT |
| 3.6.14 | 3 years ago | 56 KB | MIT |
| 3.6.13 | 3 years ago | 55 KB | MIT |
| 3.6.12 | 3 years ago | 55 KB | MIT |
| 3.6.11 | 3 years ago | 55 KB | MIT |
| 3.6.10 | 3 years ago | 55 KB | MIT |
| 3.6.9 | 3 years ago | 55 KB | MIT |
| 3.6.8 | 3 years ago | 55 KB | MIT |
| 3.6.7 | 3 years ago | 54 KB | MIT |
| 3.6.6 | 3 years ago | 54 KB | MIT |
Overview
whatwg-fetch is an npm package that a window.fetch polyfill. It has 4 known dependents in the graph. The latest version is 3.6.20, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need a window.fetch polyfill and value a focused solution.
When not to use it
Consider an alternative if you need to minimize your dependency tree, have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Clear open-source license (MIT).
Cons
- Large dependency tree (17 direct dependencies) increases install size and audit surface.
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use whatwg-fetch?
whatwg-fetch is usable, with caveats. Last published 1001 days ago.
How do I install whatwg-fetch?
Run `npm install whatwg-fetch` to add whatwg-fetch to your npm project.
What license is whatwg-fetch released under?
whatwg-fetch is distributed under the MIT license.
How popular is whatwg-fetch?
npm does not publish download counts. Within PackageGraph's crawl, 4 known packages depend on whatwg-fetch.
Is whatwg-fetch still maintained?
The most recent release of whatwg-fetch (v3.6.20) was published 2 years ago.
Does whatwg-fetch run install scripts?
No. whatwg-fetch does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.