Isomorphic WHATWG Fetch API that works in node.js, browsers, webpack, browserify, and react-native by providing a global fetch function. Version 1.0.5, last updated in 2016. Built on top of isomorphic-fetch and GitHub's WHATWG Fetch polyfill. Key differentiator: claims to support all JavaScript environments without per-environment configuration. However, the package is minimally maintained and depends on the outdated isomorphic-fetch; modern Node.js versions (18+) include native fetch, making this polyfill obsolete for most use cases.
npm install fetch-everywhereNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates fetching data from a public API after polyfilling Promise and importing fetch-everywhere to set global fetch.
In Node 18+, remove fetch-everywhere and use global fetch directly. For older environments, consider using 'node-fetch' (CJS) or 'undici' (ESM).
Use a side-effect import (import 'fetch-everywhere') or require() without assignment.
Install and polyfill es6-promise or promise before loading fetch-everywhere.
Use 'node-fetch' for full Node.js spec-compliant fetch.
Migrate to a maintained fetch polyfill or use native fetch.
Ensure you have a side-effect import: require('fetch-everywhere') or import 'fetch-everywhere' at the top of your entry file.Run: npm install es6-promise
Import fetch-everywhere at the entry point of your application before any fetch calls.
Remove fetch-everywhere and use native fetch (Node 18+) or node-fetch.