minipass-fetch

An implementation of window.fetch in Node.js using Minipass streams

MIT 34 个版本
安装
npm install minipass-fetch
yarn add minipass-fetch
pnpm add minipass-fetch
bun add minipass-fetch
README

minipass-fetch

An implementation of window.fetch in Node.js using Minipass streams

This is a fork (or more precisely, a reimplementation) of node-fetch. All streams have been replaced with minipass streams.

The goal of this module is to stay in sync with the API presented by node-fetch, with the exception of the streaming interface provided.

Why

Minipass streams are faster and more deterministic in their timing contract than node-core streams, making them a better fit for many server-side use cases.

API

See node-fetch

Differences from node-fetch (and, by extension, from the WhatWG Fetch specification):

版本列表
6.0.0 2026-05-08
5.0.2 2026-02-23
5.0.1 2026-02-02
5.0.0 2025-10-22
4.0.1 2025-02-26
4.0.0 2024-09-05
3.0.5 2024-05-04
3.0.4 2023-08-14
3.0.3 2023-04-26
3.0.2 2023-04-13
3.0.1 2022-12-07
3.0.0 2022-10-14
2.1.2 2022-08-22
2.1.1 2022-08-17
2.1.0 2022-03-24
2.0.3 2022-03-08
2.0.2 2022-03-02
2.0.1 2022-03-01
2.0.0 2022-02-24
1.4.1 2021-08-31
1.4.0 2021-08-31
1.3.4 2021-07-15
1.3.3 2021-01-12
1.3.2 2020-10-01
1.3.1 2020-08-27
1.3.0 2020-07-21
1.2.1 2019-10-20
1.2.0 2019-10-18
1.1.2 2019-10-01
1.1.1 2019-09-27
1.1.0 2019-09-26
1.0.1 2019-09-24
1.0.0 2019-09-24
0.0.1 2019-09-24