NEW! Want to just require
any ES module with zero setup? Try esm-hook
.
node-fetch but in CommonJS format. This module is built from node-fetch
directly.
- You can
require("node-fetch-commonjs")
directly. - You will not see the
ExperimentalWarning: stream/web is an experimental feature
warning. - It works on older Node.js versions that don’t support requiring built-in modules with a
node:
prefix.
yarn
./build.js # Output to `lib` folder
yarn add node-fetch-commonjs