source: node_modules/node-fetch-commonjs/README.md

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 806 bytes
Line 
1# node-fetch-commonjs
2
3[node-fetch](https://github.com/node-fetch/node-fetch) but in CommonJS format. This module is built from `node-fetch` directly.
4
5## Version check
6
7![Latest upstream version](https://img.shields.io/npm/v/node-fetch?label=latest%20upstream)
8![Current upstream version](https://img.shields.io/badge/current%20upstream-v3.3.1-brightgreen)
9
10## Differences
11
121. You can `require("node-fetch-commonjs")` directly.
132. You will not see the `ExperimentalWarning: stream/web is an experimental feature` warning.
143. 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).
15
16## Build
17
18```bash
19yarn
20./build.js # Output to `lib` folder
21```
22
23## Install
24
25```bash
26yarn add node-fetch-commonjs
27```
Note: See TracBrowser for help on using the repository browser.