A CommonJS wrapper for node-fetch v3 that brings the WHATWG Fetch API to Node.js. Version 3.3.2, updated automatically with each node-fetch release. Key differentiator: allows CJS environments to use the ESM-only node-fetch v3 without migration. Bundles fetch-blob and formdata-polyfill for full CJS compatibility. Includes TypeScript types. Use only if you cannot migrate to ESM; otherwise prefer the official node-fetch.
npm install node-fetch-cjsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to require and use fetch, Headers, Blob, and FormData from node-fetch-cjs in CJS environment.
const { default: fetch } = require('node-fetch-cjs');Use destructuring import instead.
Use only for node-fetch v3 API; do not rely on node-fetch v2-specific properties.
Use Blob and FormData from node-fetch-cjs only; avoid importing from other packages.
Upgrade Node.js to a supported version.
Use const { default: fetch } = require('node-fetch-cjs'); or call fetch.default(...).Run npm install node-fetch-cjs
Remove any --experimental-modules or --es-module-specifier-resolution flags; node-fetch-cjs works with plain require().
No dependency data recorded yet.