Debian Codegraph @

workspaces/arborist/test/fixtures/registry-mocks/content/mimic-response.json

raw
1 {
2 "_id": "mimic-response",
3 "_rev": "5-7ce6ed8fcc9b7ec96e58aae89bc4a8f1",
4 "name": "mimic-response",
5 "description": "Mimic a Node.js HTTP response stream",
6 "dist-tags": {
7 "latest": "3.1.0"
8 },
9 "versions": {
10 "1.0.0": {
11 "name": "mimic-response",
12 "version": "1.0.0",
13 "description": "Mimic a Node.js HTTP response stream",
14 "license": "MIT",
15 "repository": {
16 "type": "git",
17 "url": "git+https://github.com/sindresorhus/mimic-response.git"
18 },
19 "author": {
20 "name": "Sindre Sorhus",
21 "email": "[email protected]",
22 "url": "sindresorhus.com"
23 },
24 "engines": {
25 "node": ">=4"
26 },
27 "scripts": {
28 "test": "xo && ava"
29 },
30 "files": [
31 "index.js"
32 ],
33 "keywords": [
34 "mimic",
35 "response",
36 "stream",
37 "http",
38 "https",
39 "request",
40 "get",
41 "core"
42 ],
43 "devDependencies": {
44 "ava": "*",
45 "create-test-server": "^0.1.0",
46 "pify": "^3.0.0",
47 "xo": "*"
48 },
49 "gitHead": "44a0267b744d0006b89f69fafc468ed6abbb612b",
50 "bugs": {
51 "url": "https://github.com/sindresorhus/mimic-response/issues"
52 },
53 "homepage": "https://github.com/sindresorhus/mimic-response#readme",
54 "_id": "[email protected]",
55 "_shasum": "df3d3652a73fded6b9b0b24146e6fd052353458e",
56 "_from": ".",
57 "_npmVersion": "2.15.11",
58 "_nodeVersion": "4.8.3",
59 "_npmUser": {
60 "name": "sindresorhus",
61 "email": "[email protected]"
62 },
63 "dist": {
64 "shasum": "df3d3652a73fded6b9b0b24146e6fd052353458e",
65 "tarball": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.0.tgz"
66 },
67 "maintainers": [
68 {
69 "name": "sindresorhus",
70 "email": "[email protected]"
71 }
72 ],
73 "_npmOperationalInternal": {
74 "host": "s3://npm-registry-packages",
75 "tmp": "tmp/mimic-response-1.0.0.tgz_1496425560359_0.6087012456264347"
76 },
77 "directories": {}
78 },
79 "1.0.1": {
80 "name": "mimic-response",
81 "version": "1.0.1",
82 "description": "Mimic a Node.js HTTP response stream",
83 "license": "MIT",
84 "repository": {
85 "type": "git",
86 "url": "git+https://github.com/sindresorhus/mimic-response.git"
87 },
88 "author": {
89 "name": "Sindre Sorhus",
90 "email": "[email protected]",
91 "url": "sindresorhus.com"
92 },
93 "engines": {
94 "node": ">=4"
95 },
96 "scripts": {
97 "test": "xo && ava"
98 },
99 "files": [
100 "index.js"
101 ],
102 "keywords": [
103 "mimic",
104 "response",
105 "stream",
106 "http",
107 "https",
108 "request",
109 "get",
110 "core"
111 ],
112 "devDependencies": {
113 "ava": "*",
114 "create-test-server": "^0.1.0",
115 "pify": "^3.0.0",
116 "xo": "*"
117 },
118 "gitHead": "687b4544afddca3d3e9e61a455ca5efe0e27851e",
119 "bugs": {
120 "url": "https://github.com/sindresorhus/mimic-response/issues"
121 },
122 "homepage": "https://github.com/sindresorhus/mimic-response#readme",
123 "_id": "[email protected]",
124 "_npmVersion": "5.6.0",
125 "_nodeVersion": "8.11.3",
126 "_npmUser": {
127 "name": "sindresorhus",
128 "email": "[email protected]"
129 },
130 "dist": {
131 "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==",
132 "shasum": "4923538878eef42063cb8a3e3b0798781487ab1b",
133 "tarball": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz",
134 "fileCount": 4,
135 "unpackedSize": 3584,
136 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbRekTCRA9TVsSAnZWagAA3jYQAIIPznt0xQK2f0PlPwFp\nPGY3XFk5wsB6jA0+n4BaeLD3NdQ2zN2wP/ydMnLCY4KbcMhcsRNMapq7C5+J\n28aUasU7ljgoD2HH892XTSH3TlDze9ExbFFXNphlF+p4o+rKVD1xlk6abvSX\n04kgFTIcpL5oBztEPLNEDLWh48Z++hLNcsDcQk+6Mrw69N2Tbl8bJBjnPSnf\nnKAeZe8PqRFKzTXkl1bNiE+jLNp07pX/sUkA/6QBxisk+IcadW5uFZG0GtzZ\neAE7kJdp3yT64flZn8KmD5oHY4UmwyECA4CWEuyfau4ROBlqMEfr4U/1slTf\nuscm7iTx1/6x+/T4PSgytvQxqFx/iJ4FZCQrW8Vb807kntobpnYHU0Yj/AfE\nPuHVIiSvrpE+xUjyaMxA2/A/yBA46NSza3sPBd+rWmJJvY5CjdShIksu66Hx\nfra4BXMu4GcZlNgXJEwbj/jkY8xuVFMyr1YDkkGKQ30A6BHdEObayAxpSSpN\nOpVE0CXeiFgxiL+yPP+oEdStpT9VcUF0Jh1pGsSN6hOGPMYqJqVSs+mhAwkx\nUEkmu9zUOK4WxieYPRKBpvCkewe738Di0tc6d9nI8TCx/5ie4jE7ZTtI0s1L\nNkWmxtDXXD11LWLSn2R2DCSapjSzcbH/00EZIFg6BuuOzb0wQRM5JyYzY9B1\nhQ5F\r\n=+pqq\r\n-----END PGP SIGNATURE-----\r\n"
137 },
138 "maintainers": [
139 {
140 "name": "sindresorhus",
141 "email": "[email protected]"
142 }
143 ],
144 "directories": {},
145 "_npmOperationalInternal": {
146 "host": "s3://npm-registry-packages",
147 "tmp": "tmp/mimic-response_1.0.1_1531308307178_0.4318628271748308"
148 },
149 "_hasShrinkwrap": false
150 },
151 "2.0.0": {
152 "name": "mimic-response",
153 "version": "2.0.0",
154 "description": "Mimic a Node.js HTTP response stream",
155 "license": "MIT",
156 "repository": {
157 "type": "git",
158 "url": "git+https://github.com/sindresorhus/mimic-response.git"
159 },
160 "author": {
161 "name": "Sindre Sorhus",
162 "email": "[email protected]",
163 "url": "sindresorhus.com"
164 },
165 "engines": {
166 "node": ">=8"
167 },
168 "scripts": {
169 "test": "xo && ava"
170 },
171 "keywords": [
172 "mimic",
173 "response",
174 "stream",
175 "http",
176 "https",
177 "request",
178 "get",
179 "core"
180 ],
181 "devDependencies": {
182 "ava": "^1.1.0",
183 "create-test-server": "^2.4.0",
184 "pify": "^4.0.1",
185 "xo": "^0.24.0"
186 },
187 "gitHead": "bffa6bf1a91dc8bbede268948fdfa16af214f504",
188 "bugs": {
189 "url": "https://github.com/sindresorhus/mimic-response/issues"
190 },
191 "homepage": "https://github.com/sindresorhus/mimic-response#readme",
192 "_id": "[email protected]",
193 "_npmVersion": "6.5.0",
194 "_nodeVersion": "10.13.0",
195 "_npmUser": {
196 "name": "sindresorhus",
197 "email": "[email protected]"
198 },
199 "dist": {
200 "integrity": "sha512-8ilDoEapqA4uQ3TwS0jakGONKXVJqpy+RpM+3b7pLdOjghCrEiGp9SRkFbUHAmZW9vdnrENWHjaweIoTIJExSQ==",
201 "shasum": "996a51c60adf12cb8a87d7fb8ef24c2f3d5ebb46",
202 "tarball": "https://registry.npmjs.org/mimic-response/-/mimic-response-2.0.0.tgz",
203 "fileCount": 4,
204 "unpackedSize": 3596,
205 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcRE4aCRA9TVsSAnZWagAA2DEP/3fTjr0sQOf98GM1H6s+\nR5gk2+ABDSFs98EY79aJc4LfBMgmH7udH7hl1uZTZIyXaB5zjiAWvQ8435wp\nmQb9u3NN9CA9LTq2S8eFvCfkPVWrDRQG1fD/xhj15Srj38evVEuHH40RsTDE\nvCloJUnFdEL76hPp/+SY89pCKppp7iTfDhICTqGjDvDXS/TDhflY9y1qT1Js\nx+iKPV8K2a1ttT4XVHofop7mAPyT5cmNIn1TRT5dUSrQi2QYQ+AwnTFN96Cy\nCPLwobKTl+YubOkUEIcO9y4SHxMQGodqGUO/KQiiU5wDOOPDEbBIXIW7r8Kh\nqjxJ9gTnnX7JEifmG5KurjyMo5HIDuYLIY58V4zmxolo4rHJk8DIwIhV0DN6\na1OLjgnv7L9W8v+BnF/eu4d5+lWnsoYolX0fQKpuxiK13phXL9FyjGswBug0\nQqVViMXz7tRFqKG8uBO+ARX3eYN43/+SBJYAuf1SsCHMmLuQS+mcbnrbE18J\nYi8Zs/W7d6njyrYdr19a0nu0kXNxtwMmzt0ceBl3jowgSv1KxLbRCz2gcVHU\nr3KdHIDkfKgKrlzi4/pbBrmKo389MRxSP5qK8kesb5dq1/3uD1zWxwiSPcQb\ntW1JRH2CQKufIg12nHpjqASz06QHD/0Gj4eYMaB9QLdu5uu0x3uMnk/KLiLs\nwjSG\r\n=Qhei\r\n-----END PGP SIGNATURE-----\r\n"
206 },
207 "maintainers": [
208 {
209 "name": "sindresorhus",
210 "email": "[email protected]"
211 }
212 ],
213 "directories": {},
214 "_npmOperationalInternal": {
215 "host": "s3://npm-registry-packages",
216 "tmp": "tmp/mimic-response_2.0.0_1547980314105_0.26240773097676384"
217 },
218 "_hasShrinkwrap": false
219 },
220 "2.1.0": {
221 "name": "mimic-response",
222 "version": "2.1.0",
223 "description": "Mimic a Node.js HTTP response stream",
224 "license": "MIT",
225 "repository": {
226 "type": "git",
227 "url": "git+https://github.com/sindresorhus/mimic-response.git"
228 },
229 "funding": "https://github.com/sponsors/sindresorhus",
230 "author": {
231 "name": "Sindre Sorhus",
232 "email": "[email protected]",
233 "url": "https://sindresorhus.com"
234 },
235 "engines": {
236 "node": ">=8"
237 },
238 "scripts": {
239 "test": "xo && ava && tsd"
240 },
241 "keywords": [
242 "mimic",
243 "response",
244 "stream",
245 "http",
246 "https",
247 "request",
248 "get",
249 "core"
250 ],
251 "devDependencies": {
252 "@sindresorhus/tsconfig": "^0.3.0",
253 "@types/node": "^12.0.0",
254 "ava": "^1.1.0",
255 "create-test-server": "^2.4.0",
256 "pify": "^4.0.1",
257 "tsd": "^0.7.3",
258 "xo": "^0.24.0"
259 },
260 "gitHead": "94bd5a359bad199d801188473e48cb024c6f31ca",
261 "bugs": {
262 "url": "https://github.com/sindresorhus/mimic-response/issues"
263 },
264 "homepage": "https://github.com/sindresorhus/mimic-response#readme",
265 "_id": "[email protected]",
266 "_nodeVersion": "10.18.1",
267 "_npmVersion": "6.13.4",
268 "_npmUser": {
269 "name": "sindresorhus",
270 "email": "[email protected]"
271 },
272 "dist": {
273 "integrity": "sha512-wXqjST+SLt7R009ySCglWBCFpjUygmCIfD790/kVbiGmUgfYGuB14PiTd5DwVxSV4NcYHjzMkoj5LjQZwTQLEA==",
274 "shasum": "d13763d35f613d09ec37ebb30bac0469c0ee8f43",
275 "tarball": "https://registry.npmjs.org/mimic-response/-/mimic-response-2.1.0.tgz",
276 "fileCount": 5,
277 "unpackedSize": 4734,
278 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeSjebCRA9TVsSAnZWagAALe8P/iFbctdjOJSaAm/zcobz\nbVfPgaosbkybakVYwKS3t0xRWOsMvo47ZafI405J0OiT+B6xrp+zeFxg5Ww+\nbF70Te4CubPA/8RmhEHAypBzt2SbqxhVkUpZbyzF7crAdgC3kzJGpB/ZcJbb\nrmh1rUuQbdGjyIhgYondVCL3eR5DvYiMIlfhEFTtOeqCU7Wj4C26rZ9oCMu3\n8dwLoXG8fqsdFG1cqBFpZqmKvpEQG0fITcle1LsMfeGt6xqmaPC3Cis5Jf5f\nj4HjT7CgCKIQiEa/78dOqA1rxUEMvx72wzpeIUUQrcEUC0XLmWIHW4I036sK\nSUOhJ0dTJAEo8Y3PG9mUY639WVLe9oUiYslavX/kVl5kNsSOpA3ZRCRQm0fE\nf0RqFp7vW6/Amv0QqNYuUXhf/TR3lJeQ6sqvdQZbNW1bJfSLd42occxBN0AK\nJZ5VNC75kW/wqJeFg+ckSOOcGJyHhoxZj420qNB+aNu58DSGs+kBJ/FEcUDR\nhgeFs4KwzCKRfRHETe9Nhv0EOQG5yddTcuuRx8D070Nr82Ofq2QitUoDmz3k\nIqVVyVLf6fLJndAj2adI+4jlEZTF8e14B7I8Rh3LwiI5Yhihft7Qkf4v6Obu\nSVp4xqg2Y63nTx6Ev1Y3MvFONrGcLdEjSnr9VbzDwKNBoOXnlSzt6vEIfJr6\nsx9j\r\n=hu6u\r\n-----END PGP SIGNATURE-----\r\n"
279 },
280 "maintainers": [
281 {
282 "name": "sindresorhus",
283 "email": "[email protected]"
284 }
285 ],
286 "directories": {},
287 "_npmOperationalInternal": {
288 "host": "s3://npm-registry-packages",
289 "tmp": "tmp/mimic-response_2.1.0_1581922202617_0.29954897440523287"
290 },
291 "_hasShrinkwrap": false
292 },
293 "3.0.0": {
294 "name": "mimic-response",
295 "version": "3.0.0",
296 "description": "Mimic a Node.js HTTP response stream",
297 "license": "MIT",
298 "repository": {
299 "type": "git",
300 "url": "git+https://github.com/sindresorhus/mimic-response.git"
301 },
302 "funding": "https://github.com/sponsors/sindresorhus",
303 "author": {
304 "name": "Sindre Sorhus",
305 "email": "[email protected]",
306 "url": "https://sindresorhus.com"
307 },
308 "engines": {
309 "node": ">=10"
310 },
311 "scripts": {
312 "test": "xo && ava && tsd"
313 },
314 "keywords": [
315 "mimic",
316 "response",
317 "stream",
318 "http",
319 "https",
320 "request",
321 "get",
322 "core"
323 ],
324 "devDependencies": {
325 "@types/node": "^14.0.1",
326 "ava": "^2.4.0",
327 "create-test-server": "^2.4.0",
328 "p-event": "^4.1.0",
329 "pify": "^5.0.0",
330 "tsd": "^0.11.0",
331 "xo": "^0.30.0"
332 },
333 "gitHead": "a198eb503208b023193512b7bf31a491915b774b",
334 "bugs": {
335 "url": "https://github.com/sindresorhus/mimic-response/issues"
336 },
337 "homepage": "https://github.com/sindresorhus/mimic-response#readme",
338 "_id": "[email protected]",
339 "_nodeVersion": "12.16.3",
340 "_npmVersion": "6.14.4",
341 "_npmUser": {
342 "name": "sindresorhus",
343 "email": "[email protected]"
344 },
345 "dist": {
346 "integrity": "sha512-vE8dqYbdBFxcvS5KofMTGZ9I8CA3m00em4jCAruysVt9KfS9lJnSPD47oBfPhZ/rYB1hyY027nEPifrQePfMig==",
347 "shasum": "b7cc6aa6aaec31e6b9b2f17488b258ade8e7aecf",
348 "tarball": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.0.0.tgz",
349 "fileCount": 5,
350 "unpackedSize": 6145,
351 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevDJ9CRA9TVsSAnZWagAA5P8QAJcXmo9iupBw4LH7YIIX\nOnEYEWh1PU0MCQcmVhJPcspDEDWKHNj/TIY754++fLwPqox8gvBInwV2Pv8F\nSbP+0jb+qmFN/0vAreiY8tdjICyV5ITtHdbwQbl0dK7gKN3TFAhsCwTwngCt\nXo/YqlOfQzw55wNaLMiuZM2DKOvc3k5tJYYrJhIvqPee4OdsieuMx1nuYjYf\nQ9WbPFPGedD41I3kViy4865T8nOsHTGVQ2RJXjYShartio3zPASS4Es7qkI9\nEF9E03yuIYqXqMqE12Gt0U3ou0dF5ocPWUSZuH66Pfy35QDKOAtb5nqmwAG8\nLJBdCGZPSmw1KvNmSNEpV6AV7iSRCTdIiApVfmi0rYO2zqd2MOhkeBzb+oYg\nXPaHnw5lMQdORZMTveqRDkjnBBVXlcdKY3tBBBKCSQcSz9gN1FYtUni0riih\n4YwBo3cRTNKWUvcTZ1wwZ4L8t4U8yffeIRPyuCAze+pzVJfk+2KpILD7yQBC\nSVs81Eyf7ZC0or0EGdPebTkdcnvww3oxeh+Sdyzbwbg7hcY5pPMc6y/llhRu\nYMhAUBCn6sQcumVuAoMxYZ/5ifKy8XzsTCa+l1mkHjB5HMEaPLhleCz+JpHM\nGnsnkZujjAa14wLGe3s0sacSronvLhGw7KZ+OE0kYgGtNYRNrj0pHj92RKaf\nEC6I\r\n=a/Vk\r\n-----END PGP SIGNATURE-----\r\n"
352 },
353 "maintainers": [
354 {
355 "name": "sindresorhus",
356 "email": "[email protected]"
357 }
358 ],
359 "directories": {},
360 "_npmOperationalInternal": {
361 "host": "s3://npm-registry-packages",
362 "tmp": "tmp/mimic-response_3.0.0_1589391996948_0.08494827744204869"
363 },
364 "_hasShrinkwrap": false
365 },
366 "3.1.0": {
367 "name": "mimic-response",
368 "version": "3.1.0",
369 "description": "Mimic a Node.js HTTP response stream",
370 "license": "MIT",
371 "repository": {
372 "type": "git",
373 "url": "git+https://github.com/sindresorhus/mimic-response.git"
374 },
375 "funding": "https://github.com/sponsors/sindresorhus",
376 "author": {
377 "name": "Sindre Sorhus",
378 "email": "[email protected]",
379 "url": "https://sindresorhus.com"
380 },
381 "engines": {
382 "node": ">=10"
383 },
384 "scripts": {
385 "test": "xo && ava && tsd"
386 },
387 "keywords": [
388 "mimic",
389 "response",
390 "stream",
391 "http",
392 "https",
393 "request",
394 "get",
395 "core"
396 ],
397 "devDependencies": {
398 "@types/node": "^14.0.1",
399 "ava": "^2.4.0",
400 "create-test-server": "^2.4.0",
401 "p-event": "^4.1.0",
402 "pify": "^5.0.0",
403 "tsd": "^0.11.0",
404 "xo": "^0.30.0"
405 },
406 "gitHead": "d431140fc079b922aa8c998bee0e85b1ffe74e48",
407 "bugs": {
408 "url": "https://github.com/sindresorhus/mimic-response/issues"
409 },
410 "homepage": "https://github.com/sindresorhus/mimic-response#readme",
411 "_id": "[email protected]",
412 "_nodeVersion": "10.20.1",
413 "_npmVersion": "6.14.4",
414 "_npmUser": {
415 "name": "sindresorhus",
416 "email": "[email protected]"
417 },
418 "dist": {
419 "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==",
420 "shasum": "2d1d59af9c1b129815accc2c46a022a5ce1fa3c9",
421 "tarball": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz",
422 "fileCount": 5,
423 "unpackedSize": 6003,
424 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevY5nCRA9TVsSAnZWagAAC4IQAIxgEDcbkQo/76G9pZXp\n0dsJaCkvS+RdEHrhClmN7Ih/d2/+kpNT4k9PYnxLt6zZUxs6eACMyf1rhHG3\n5dr+x/2828a6If1dgSZm+/mwvLlkkQea6VVV4un2BPYDOeNZO1ADubLobjFQ\nxAbijioNyiRQpbVnXdQlzJq1gFGLpWBggmPnEayuuGtxJm11V7FWRosLIX69\nIkV9+37s/lmwh0lPsGuxjrNlyKBSWM/RoMV4eMwDW4V3Gg5n3YBQIoi4ck08\nxhr+wRcgFt7RnIZRNwYmBbpEjJWqzIcgQ+O/zU0fbU23U6AVeTjQ3uICYfKC\n7Hn4IHk9G5MXxJp9+oJFrEcK0kwDeEKtu2nS7utNcLtg1wvIeUP80Mn7U+Ra\n62G2e/sjGbrfRvdSszIW1UGl6vnphl6JnoQtOA+Rvb1x18ZEG4I3rSrK+W1f\nAJmpPxL7siPoXrZW9ie+07EL0U5Z3wYfT9hNNkw0aliKdRuucFI/LrAzub0f\nf0Y553w8Miy+ZILtS0EUwroMG96ZOPRgaBlNJr6ixQjkXPb7YfiAPEPAVgri\n0ALQ6B0TRavzqqKiP23h872pV2kEsr+6rtaOI2HSxlvn+tCguqV2FxM21QSQ\nPcwOZbzNyA+VmMqnQ9cK+ql2Ycgc9UucWHYzcVAkgUf/ogz2xMOLSiocZg7H\nZmKS\r\n=n58q\r\n-----END PGP SIGNATURE-----\r\n"
425 },
426 "maintainers": [
427 {
428 "name": "sindresorhus",
429 "email": "[email protected]"
430 }
431 ],
432 "directories": {},
433 "_npmOperationalInternal": {
434 "host": "s3://npm-registry-packages",
435 "tmp": "tmp/mimic-response_3.1.0_1589481062774_0.7721786284338883"
436 },
437 "_hasShrinkwrap": false
438 }
439 },
440 "readme": "# mimic-response [![Build Status](https://travis-ci.com/sindresorhus/mimic-response.svg?branch=master)](https://travis-ci.com/sindresorhus/mimic-response)\n\n> Mimic a [Node.js HTTP response stream](https://nodejs.org/api/http.html#http_class_http_incomingmessage)\n\n## Install\n\n```\n$ npm install mimic-response\n```\n\n## Usage\n\n```js\nconst stream = require('stream');\nconst mimicResponse = require('mimic-response');\n\nconst responseStream = getHttpResponseStream();\nconst myStream = new stream.PassThrough();\n\nmimicResponse(responseStream, myStream);\n\nconsole.log(myStream.statusCode);\n//=> 200\n```\n\n## API\n\n### mimicResponse(from, to)\n\n**Note #1:** The `from.destroy(error)` function is not proxied. You have to call it manually:\n\n```js\nconst stream = require('stream');\nconst mimicResponse = require('mimic-response');\n\nconst responseStream = getHttpResponseStream();\n\nconst myStream = new stream.PassThrough({\n\tdestroy(error, callback) {\n\t\tresponseStream.destroy();\n\n\t\tcallback(error);\n\t}\n});\n\nmyStream.destroy();\n```\n\nPlease note that `myStream` and `responseStream` never throws. The error is passed to the request instead.\n\n#### from\n\nType: `Stream`\n\n[Node.js HTTP response stream.](https://nodejs.org/api/http.html#http_class_http_incomingmessage)\n\n#### to\n\nType: `Stream`\n\nAny stream.\n\n## Related\n\n- [mimic-fn](https://github.com/sindresorhus/mimic-fn) - Make a function mimic another one\n- [clone-response](https://github.com/lukechilds/clone-response) - Clone a Node.js response stream\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<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>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n",
441 "maintainers": [
442 {
443 "name": "sindresorhus",
444 "email": "[email protected]"
445 }
446 ],
447 "time": {
448 "modified": "2020-05-14T18:31:07.422Z",
449 "created": "2017-06-02T17:46:00.485Z",
450 "1.0.0": "2017-06-02T17:46:00.485Z",
451 "1.0.1": "2018-07-11T11:25:07.279Z",
452 "2.0.0": "2019-01-20T10:31:54.203Z",
453 "2.1.0": "2020-02-17T06:50:02.733Z",
454 "3.0.0": "2020-05-13T17:46:37.063Z",
455 "3.1.0": "2020-05-14T18:31:02.911Z"
456 },
457 "homepage": "https://github.com/sindresorhus/mimic-response#readme",
458 "keywords": [
459 "mimic",
460 "response",
461 "stream",
462 "http",
463 "https",
464 "request",
465 "get",
466 "core"
467 ],
468 "repository": {
469 "type": "git",
470 "url": "git+https://github.com/sindresorhus/mimic-response.git"
471 },
472 "author": {
473 "name": "Sindre Sorhus",
474 "email": "[email protected]",
475 "url": "https://sindresorhus.com"
476 },
477 "bugs": {
478 "url": "https://github.com/sindresorhus/mimic-response/issues"
479 },
480 "license": "MIT",
481 "readmeFilename": "readme.md"
482 }