node-fetch-commonjs
Version:
A light-weight module that brings Fetch API to node.js
28 lines (18 loc) • 806 B
Markdown
# node-fetch-commonjs
[node-fetch](https://github.com/node-fetch/node-fetch) but in CommonJS format. This module is built from `node-fetch` directly.
## Version check


## Differences
1. You can `require("node-fetch-commonjs")` directly.
2. You will not see the `ExperimentalWarning: stream/web is an experimental feature` warning.
3. It works on older Node.js versions that don’t support [requiring built-in modules with a `node:` prefix](https://github.com/node-fetch/node-fetch/issues/1367).
## Build
```bash
yarn
./build.js # Output to `lib` folder
```
## Install
```bash
yarn add node-fetch-commonjs
```