Welcome to mirror list, hosted at ThFree Co, Russian Federation.

README.md « minipass-fetch « node_modules - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 925e6bec3f15d23afd110865e75e160a6dfa89bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# 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.