source: trip-planner-front/node_modules/minipass-fetch/README.md@ bdd6491

Last change on this file since bdd6491 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 988 bytes
Line 
1# minipass-fetch
2
3An implementation of window.fetch in Node.js using Minipass streams
4
5This is a fork (or more precisely, a reimplementation) of
6[node-fetch](http://npm.im/node-fetch). All streams have been replaced
7with [minipass streams](http://npm.im/minipass).
8
9The goal of this module is to stay in sync with the API presented by
10`node-fetch`, with the exception of the streaming interface provided.
11
12## Why
13
14Minipass streams are faster and more deterministic in their timing contract
15than node-core streams, making them a better fit for many server-side use
16cases.
17
18## API
19
20See [node-fetch](http://npm.im/node-fetch)
21
22Differences from `node-fetch` (and, by extension, from the WhatWG Fetch
23specification):
24
25- Returns [minipass](http://npm.im/minipass) streams instead of node-core
26 streams.
27- Supports the full set of [TLS Options that may be provided to
28 `https.request()`](https://nodejs.org/api/https.html#https_https_request_options_callback)
29 when making `https` requests.
Note: See TracBrowser for help on using the repository browser.