# extra-fetch

> ```sh npm install --save extra-fetch # or yarn add extra-fetch ```

Latest version **5.2.0** (published 2026-01-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install extra-fetch
pnpm add extra-fetch
yarn add extra-fetch
bun add extra-fetch
```

## Health

**Score 60/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 5.2.0 |
| Published | 2026-01-20 |
| First published | 2021-01-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22 |
| Dependencies | 11 |
| Unpacked size | 20.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | BlackGlory |
| Maintainers | black_glory |

## Links

- npm: https://www.npmjs.com/package/extra-fetch
- Repository: https://github.com/BlackGlory/extra-fetch
- Homepage: https://github.com/BlackGlory/extra-fetch#readme
- Issues: https://github.com/BlackGlory/extra-fetch/issues
- npm.io page: https://npm.io/package/extra-fetch

## Dependencies (11)

- [chalk](https://npm.io/package/chalk.md) ^5.4.1
- [undici](https://npm.io/package/undici.md) ^7.18.2
- [justypes](https://npm.io/package/justypes.md) ^4.4.1
- [lodash-es](https://npm.io/package/lodash-es.md) ^4.17.21
- [extra-lazy](https://npm.io/package/extra-lazy.md) ^2.0.2
- [eventsource](https://npm.io/package/eventsource.md) ^4.0.0
- [extra-abort](https://npm.io/package/extra-abort.md) ^0.4.0
- [extra-logger](https://npm.io/package/extra-logger.md) ^0.8.0
- [return-style](https://npm.io/package/return-style.md) ^3.0.1
- [value-getter](https://npm.io/package/value-getter.md) ^0.3.3
- [@blackglory/prelude](https://npm.io/package/@blackglory/prelude.md) ^0.4.0

## Recent versions

- 5.2.0 (latest) — 2026-01-20
- 5.1.0 — 2025-10-15
- 5.0.1 — 2025-06-15
- 5.0.0 — 2025-06-15
- 4.0.7 — 2023-06-10
- 4.0.6 — 2023-04-07
- 4.0.5 — 2023-03-25
- 1.9.3 — 2023-03-03
- 4.0.4 — 2023-01-22
- 4.0.3 — 2023-01-22
- 4.0.2 — 2023-01-21
- 1.9.2 — 2022-11-01
- 4.0.1 — 2022-11-01
- 1.9.1 — 2022-10-31
- 1.9.0 — 2022-09-30
- … 51 more at https://npm.io/package/extra-fetch/versions

## README

# extra-fetch
## Install
```sh
npm install --save extra-fetch
# or
yarn add extra-fetch
```

## API
- fetch
- Headers
- Request
- Response
- FormData
- AbortController
- Blob
- EventSource

## Logging
When using `fetch` in Node.js, logging can be enabled by setting the environment variable `EXTRA_FETCH_LOG`.

### Level
- `EXTRA_FETCH_LOG=none`: disable.
- `EXTRA_FETCH_LOG=error`: log ids, timestamps, elapsed time, errors on failure.
- `EXTRA_FETCH_LOG=info`: log all of the above, and the urls, methods, status codes of each request and response.
- `EXTRA_FETCH_LOG=trace`: log all of the above, and the headers of each request and response.

## HTTP/2
When using `fetch` in Node.js, HTTP/2 is enabled by default.
You can disable HTTP/2 by setting the environment variable `EXTRA_FETCH_HTTP2=false`.

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