# node-fetch-commonjs

> A light-weight module that brings Fetch API to node.js

Latest version **3.3.2** (published 2023-09-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-fetch-commonjs
pnpm add node-fetch-commonjs
yarn add node-fetch-commonjs
bun add node-fetch-commonjs
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.3.2 |
| Published | 2023-09-12 |
| First published | 2021-09-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | ^12.20.0 \|\| ^14.13.1 \|\| >=16.0.0 |
| Dependencies | 2 |
| Unpacked size | 258.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 22 |
| Author | David Frank |
| Maintainers | proteria |
| Keywords | fetch, http, promise, request, curl, wget, xhr, whatwg |

## Links

- npm: https://www.npmjs.com/package/node-fetch-commonjs
- Repository: https://github.com/proteriax/node-fetch-cjs
- Homepage: https://github.com/proteriax/node-fetch-cjs#readme
- Issues: https://github.com/proteriax/node-fetch-cjs/issues
- Funding: https://opencollective.com/node-fetch
- npm.io page: https://npm.io/package/node-fetch-commonjs

## Dependencies (2)

- [node-domexception](https://npm.io/package/node-domexception.md) ^1.0.0
- [web-streams-polyfill](https://npm.io/package/web-streams-polyfill.md) ^3.0.3

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 3.3.2 (latest) — 2023-09-12
- 3.3.1 — 2023-06-16
- 3.2.4 — 2022-09-22
- 3.1.1 — 2021-11-21
- 3.1.0 — 2021-11-20
- 3.0.3 — 2021-10-11
- 3.0.2 — 2021-10-11
- 3.0.1 — 2021-10-05
- 3.0.0 — 2021-09-15

## README

# 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

![Latest upstream version](https://img.shields.io/npm/v/node-fetch?label=latest%20upstream)
![Current upstream version](https://img.shields.io/badge/current%20upstream-v3.3.1-brightgreen)

## 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
```

---
_Source: https://npm.io/package/node-fetch-commonjs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
