aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/mimic-response/readme.md
diff options
context:
space:
mode:
authorpack <pack@packgekko.xyz>2026-08-09 10:54:08 +0000
committerpack <pack@packgekko.xyz>2026-08-09 10:54:08 +0000
commitd3adc16a08d95d6e331de55d7d3bf05a66a874a8 (patch)
treea2dabd199501e67c547c2ce79e1374ca3aa55443 /node_modules/mimic-response/readme.md
parent55a4f1fc869e41aca748c63d3018f0448b1606e0 (diff)
downloadcrud-d3adc16a08d95d6e331de55d7d3bf05a66a874a8.tar.gz
stop tracking node_modules/
Diffstat (limited to '')
-rw-r--r--node_modules/mimic-response/readme.md78
1 files changed, 0 insertions, 78 deletions
diff --git a/node_modules/mimic-response/readme.md b/node_modules/mimic-response/readme.md
deleted file mode 100644
index e968620..0000000
--- a/node_modules/mimic-response/readme.md
+++ /dev/null
@@ -1,78 +0,0 @@
-# mimic-response [![Build Status](https://travis-ci.com/sindresorhus/mimic-response.svg?branch=master)](https://travis-ci.com/sindresorhus/mimic-response)
-
-> Mimic a [Node.js HTTP response stream](https://nodejs.org/api/http.html#http_class_http_incomingmessage)
-
-## Install
-
-```
-$ npm install mimic-response
-```
-
-## Usage
-
-```js
-const stream = require('stream');
-const mimicResponse = require('mimic-response');
-
-const responseStream = getHttpResponseStream();
-const myStream = new stream.PassThrough();
-
-mimicResponse(responseStream, myStream);
-
-console.log(myStream.statusCode);
-//=> 200
-```
-
-## API
-
-### mimicResponse(from, to)
-
-**Note #1:** The `from.destroy(error)` function is not proxied. You have to call it manually:
-
-```js
-const stream = require('stream');
-const mimicResponse = require('mimic-response');
-
-const responseStream = getHttpResponseStream();
-
-const myStream = new stream.PassThrough({
- destroy(error, callback) {
- responseStream.destroy();
-
- callback(error);
- }
-});
-
-myStream.destroy();
-```
-
-Please note that `myStream` and `responseStream` never throws. The error is passed to the request instead.
-
-#### from
-
-Type: `Stream`
-
-[Node.js HTTP response stream.](https://nodejs.org/api/http.html#http_class_http_incomingmessage)
-
-#### to
-
-Type: `Stream`
-
-Any stream.
-
-## Related
-
-- [mimic-fn](https://github.com/sindresorhus/mimic-fn) - Make a function mimic another one
-- [clone-response](https://github.com/lukechilds/clone-response) - Clone a Node.js response stream
-
----
-
-<div align="center">
- <b>
- <a href="https://tidelift.com/subscription/pkg/npm-mimic-response?utm_source=npm-mimic-response&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
- </b>
- <br>
- <sub>
- Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
- </sub>
-</div>