Package Exports
- node-fetch-commonjs
- node-fetch-commonjs/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (node-fetch-commonjs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
node-fetch-commonjs
node-fetch but in CommonJS format. This module is built from node-fetch directly.
Version check
Differences
- You can
require("node-fetch-commonjs")directly. - You will not see the
ExperimentalWarning: stream/web is an experimental featurewarning. - It works on older Node.js versions that don’t support requiring built-in modules with a
node:prefix.
Build
yarn
./build.js # Output to `lib` folderInstall
yarn add node-fetch-commonjs