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 | 
|
---|
8 | 
|
---|
9 |
|
---|
10 | ## Differences
|
---|
11 |
|
---|
12 | 1. You can `require("node-fetch-commonjs")` directly.
|
---|
13 | 2. You will not see the `ExperimentalWarning: stream/web is an experimental feature` warning.
|
---|
14 | 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).
|
---|
15 |
|
---|
16 | ## Build
|
---|
17 |
|
---|
18 | ```bash
|
---|
19 | yarn
|
---|
20 | ./build.js # Output to `lib` folder
|
---|
21 | ```
|
---|
22 |
|
---|
23 | ## Install
|
---|
24 |
|
---|
25 | ```bash
|
---|
26 | yarn add node-fetch-commonjs
|
---|
27 | ```
|
---|
Note:
See
TracBrowser
for help on using the repository browser.