https://github.com/npm/minipass-fetch
An implementation of window.fetch in Node.js using Minipass streams
https://github.com/npm/minipass-fetch
npm-cli
Last synced: 5 months ago
JSON representation
An implementation of window.fetch in Node.js using Minipass streams
- Host: GitHub
- URL: https://github.com/npm/minipass-fetch
- Owner: npm
- License: other
- Created: 2019-09-23T21:36:10.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2025-04-28T18:51:59.000Z (about 1 year ago)
- Last Synced: 2025-05-14T04:41:47.222Z (about 1 year ago)
- Topics: npm-cli
- Language: JavaScript
- Homepage:
- Size: 402 KB
- Stars: 56
- Watchers: 8
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
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](http://npm.im/node-fetch). All streams have been replaced
with [minipass streams](http://npm.im/minipass).
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](http://npm.im/node-fetch)
Differences from `node-fetch` (and, by extension, from the WhatWG Fetch
specification):
- Returns [minipass](http://npm.im/minipass) streams instead of node-core
streams.
- Supports the full set of [TLS Options that may be provided to
`https.request()`](https://nodejs.org/api/https.html#https_https_request_options_callback)
when making `https` requests.