{
  "_args": [
    [
      {
        "raw": "responselike@1.0.2",
        "scope": null,
        "escapedName": "responselike",
        "name": "responselike",
        "rawSpec": "1.0.2",
        "spec": "1.0.2",
        "type": "version"
      },
      "/home/zkochan/src/pnpm/packages/pnpm/node_modules/cacheable-request"
    ]
  ],
  "_from": "responselike@1.0.2",
  "_id": "responselike@1.0.2",
  "_inCache": true,
  "_location": "/responselike",
  "_nodeVersion": "8.4.0",
  "_npmOperationalInternal": {
    "host": "s3://npm-registry-packages",
    "tmp": "tmp/responselike-1.0.2.tgz_1502988434730_0.1581996688619256"
  },
  "_npmUser": {
    "name": "lukechilds",
    "email": "lukechilds123@gmail.com"
  },
  "_npmVersion": "4.6.1",
  "_phantomChildren": {},
  "_requested": {
    "raw": "responselike@1.0.2",
    "scope": null,
    "escapedName": "responselike",
    "name": "responselike",
    "rawSpec": "1.0.2",
    "spec": "1.0.2",
    "type": "version"
  },
  "_requiredBy": [
    "/cacheable-request"
  ],
  "_resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz",
  "_shasum": "918720ef3b631c5642be068f15ade5a46f4ba1e7",
  "_shrinkwrap": null,
  "_spec": "responselike@1.0.2",
  "_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/cacheable-request",
  "author": {
    "name": "lukechilds"
  },
  "bugs": {
    "url": "https://github.com/lukechilds/responselike/issues"
  },
  "dependencies": {
    "lowercase-keys": "^1.0.0"
  },
  "description": "A response-like object for mocking a Node.js HTTP response stream",
  "devDependencies": {
    "ava": "^0.22.0",
    "coveralls": "^2.13.1",
    "eslint-config-xo-lukechilds": "^1.0.0",
    "get-stream": "^3.0.0",
    "nyc": "^11.1.0",
    "xo": "^0.19.0"
  },
  "directories": {},
  "dist": {
    "shasum": "918720ef3b631c5642be068f15ade5a46f4ba1e7",
    "tarball": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz"
  },
  "gitHead": "69366dfd6e161b46bc4503c114d067b87e30dd60",
  "homepage": "https://github.com/lukechilds/responselike#readme",
  "keywords": [
    "http",
    "https",
    "response",
    "mock",
    "request",
    "responselike"
  ],
  "license": "MIT",
  "main": "src/index.js",
  "maintainers": [
    {
      "name": "lukechilds",
      "email": "lukechilds123@gmail.com"
    }
  ],
  "name": "responselike",
  "optionalDependencies": {},
  "readme": "# responselike\n\n> A response-like object for mocking a Node.js HTTP response stream\n\n[![Build Status](https://travis-ci.org/lukechilds/responselike.svg?branch=master)](https://travis-ci.org/lukechilds/responselike)\n[![Coverage Status](https://coveralls.io/repos/github/lukechilds/responselike/badge.svg?branch=master)](https://coveralls.io/github/lukechilds/responselike?branch=master)\n[![npm](https://img.shields.io/npm/dm/responselike.svg)](https://www.npmjs.com/package/responselike)\n[![npm](https://img.shields.io/npm/v/responselike.svg)](https://www.npmjs.com/package/responselike)\n\nReturns a streamable response object similar to a [Node.js HTTP response stream](https://nodejs.org/api/http.html#http_class_http_incomingmessage). Useful for formatting cached responses so they can be consumed by code expecting a real response.\n\n## Install\n\n```shell\nnpm install --save responselike\n```\n\nOr if you're just using for testing you'll want:\n\n```shell\nnpm install --save-dev responselike\n```\n\n## Usage\n\n```js\nconst Response = require('responselike');\n\nconst response = new Response(200, { foo: 'bar' }, Buffer.from('Hi!'), 'https://example.com');\n\nresponse.statusCode;\n// 200\nresponse.headers;\n// { foo: 'bar' }\nresponse.body;\n// <Buffer 48 69 21>\nresponse.url;\n// 'https://example.com'\n\nresponse.pipe(process.stdout);\n// Hi!\n```\n\n\n## API\n\n### new Response(statusCode, headers, body, url)\n\nReturns a streamable response object similar to a [Node.js HTTP response stream](https://nodejs.org/api/http.html#http_class_http_incomingmessage).\n\n#### statusCode\n\nType: `number`\n\nHTTP response status code.\n\n#### headers\n\nType: `object`\n\nHTTP headers object. Keys will be automatically lowercased.\n\n#### body\n\nType: `buffer`\n\nA Buffer containing the response body. The Buffer contents will be streamable but is also exposed directly as `response.body`.\n\n#### url\n\nType: `string`\n\nRequest URL string.\n\n## License\n\nMIT © Luke Childs\n",
  "readmeFilename": "README.md",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/lukechilds/responselike.git"
  },
  "scripts": {
    "coverage": "nyc report --reporter=text-lcov | coveralls",
    "test": "xo && nyc ava"
  },
  "version": "1.0.2",
  "xo": {
    "extends": "xo-lukechilds"
  }
}
