A CommonJS-compatible fork of node-fetch v3.x that brings the WHATWG Fetch API to Node.js. This package provides the same API as node-fetch v3.3.1 but compiled to CommonJS, allowing require() usage and avoiding the ExperimentalWarning about 'stream/web'. It supports Node.js ^12.20.0, ^14.13.1, or >=16.0.0 and ships TypeScript type definitions. Useful for projects that require CommonJS modules or run on older Node.js versions that don't support node: prefix requires.
npm install node-fetch-commonjsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic fetch usage with error handling for non-ok responses.
Check node-fetch documentation for known limitations.
Use global fetch available in Node >=18, or import from 'node:fetch'.
Use import() syntax or ensure package is fully CommonJS.
Use node-fetch-commonjs instead of node-fetch to avoid the warning.
Run 'npm install node-fetch-commonjs' or 'yarn add node-fetch-commonjs'
Add 'import fetch from "node-fetch-commonjs"' at the top of your file.
No dependency data recorded yet.