@zkochan/pnpm
Version:
Fast, disk space efficient package manager
113 lines (112 loc) • 4.87 kB
JSON
{
"_args": [
[
{
"raw": "mimic-response@^1.0.0",
"scope": null,
"escapedName": "mimic-response",
"name": "mimic-response",
"rawSpec": "^1.0.0",
"spec": ">=1.0.0 <2.0.0",
"type": "range"
},
"/home/zkochan/src/pnpm/packages/pnpm/node_modules/got"
]
],
"_from": "mimic-response@>=1.0.0 <2.0.0",
"_id": "mimic-response@1.0.1",
"_inCache": true,
"_location": "/mimic-response",
"_nodeVersion": "8.11.3",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/mimic-response_1.0.1_1531308307178_0.4318628271748308"
},
"_npmUser": {
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
},
"_npmVersion": "5.6.0",
"_phantomChildren": {},
"_requested": {
"raw": "mimic-response@^1.0.0",
"scope": null,
"escapedName": "mimic-response",
"name": "mimic-response",
"rawSpec": "^1.0.0",
"spec": ">=1.0.0 <2.0.0",
"type": "range"
},
"_requiredBy": [
"/clone-response",
"/decompress-response",
"/got"
],
"_resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz",
"_shasum": "4923538878eef42063cb8a3e3b0798781487ab1b",
"_shrinkwrap": null,
"_spec": "mimic-response@^1.0.0",
"_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/got",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"bugs": {
"url": "https://github.com/sindresorhus/mimic-response/issues"
},
"dependencies": {},
"description": "Mimic a Node.js HTTP response stream",
"devDependencies": {
"ava": "*",
"create-test-server": "^0.1.0",
"pify": "^3.0.0",
"xo": "*"
},
"directories": {},
"dist": {
"integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==",
"shasum": "4923538878eef42063cb8a3e3b0798781487ab1b",
"tarball": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz",
"fileCount": 4,
"unpackedSize": 3584,
"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"
},
"engines": {
"node": ">=4"
},
"files": [
"index.js"
],
"gitHead": "687b4544afddca3d3e9e61a455ca5efe0e27851e",
"homepage": "https://github.com/sindresorhus/mimic-response#readme",
"keywords": [
"mimic",
"response",
"stream",
"http",
"https",
"request",
"get",
"core"
],
"license": "MIT",
"maintainers": [
{
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
}
],
"name": "mimic-response",
"optionalDependencies": {},
"readme": "# mimic-response [](https://travis-ci.org/sindresorhus/mimic-response)\n\n> Mimic a [Node.js HTTP response stream](https://nodejs.org/api/http.html#http_class_http_incomingmessage)\n\n\n## Install\n\n```\n$ npm install mimic-response\n```\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\n## API\n\n### mimicResponse(from, to)\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\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## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n",
"readmeFilename": "readme.md",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/mimic-response.git"
},
"scripts": {
"test": "xo && ava"
},
"version": "1.0.1"
}