A fetch ponyfill that works across Node.js, browsers, React Native, and Cloudflare Workers. Version 0.3.18 provides a simple, no-dependency implementation of the Fetch API designed as a proper ponyfill (does not pollute globals). It is isolated from the environment's native fetch, making it suitable for sandboxed runtimes like Cloudflare Workers. Unlike cross-fetch, it works in Workers by avoiding Node-specific dependencies. Release cadence is low; the package is stable but not actively developed. The name includes 'ponyfill' to indicate it replaces the global fetch only when explicitly imported, avoiding side effects.
npm install isomorphic-fetch-ponyfillNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates using named import and making a POST request with the ponyfill fetch.
Always use the imported fetch function explicitly; do not rely on a global fetch.
Verify that your use case (e.g., streaming) works; fall back to native fetch if needed.
Run 'npm install isomorphic-fetch-ponyfill' and ensure the import statement is correct.
Use 'import { fetch } from 'isomorphic-fetch-ponyfill'' instead of 'import fetch from ...'. If using CommonJS: 'const { fetch } = require(...)'.No dependency data recorded yet.