| 1 |
{ |
| 2 |
"_id": "responselike", |
| 3 |
"_rev": "5-a1aa344e8d5b93c153af4d13b5fc0ce8", |
| 4 |
"name": "responselike", |
| 5 |
"description": "A response-like object for mocking a Node.js HTTP response stream", |
| 6 |
"dist-tags": { |
| 7 |
"latest": "2.0.0" |
| 8 |
}, |
| 9 |
"versions": { |
| 10 |
"0.1.0": { |
| 11 |
"name": "responselike", |
| 12 |
"version": "0.1.0", |
| 13 |
"description": "A response-like object for mocking a native Node.js HTTP response", |
| 14 |
"keywords": [ |
| 15 |
"http", |
| 16 |
"https", |
| 17 |
"response", |
| 18 |
"request", |
| 19 |
"responselike" |
| 20 |
], |
| 21 |
"scripts": { |
| 22 |
"test": "node test" |
| 23 |
}, |
| 24 |
"repository": { |
| 25 |
"type": "git", |
| 26 |
"url": "git+https://github.com/lukechilds/responselike.git" |
| 27 |
}, |
| 28 |
"author": { |
| 29 |
"name": "lukechilds" |
| 30 |
}, |
| 31 |
"license": "MIT", |
| 32 |
"gitHead": "603af7088210b166764883e84c3d4b6ac495ab53", |
| 33 |
"bugs": { |
| 34 |
"url": "https://github.com/lukechilds/responselike/issues" |
| 35 |
}, |
| 36 |
"homepage": "https://github.com/lukechilds/responselike#readme", |
| 37 |
"_id": "[email protected]", |
| 38 |
"_shasum": "93684efcea96d2c1e96f88a1dbec48d5cc1e5ebd", |
| 39 |
"_from": ".", |
| 40 |
"_npmVersion": "3.10.3", |
| 41 |
"_nodeVersion": "6.7.0", |
| 42 |
"_npmUser": { |
| 43 |
"name": "lukechilds", |
| 44 |
"email": "[email protected]" |
| 45 |
}, |
| 46 |
"dist": { |
| 47 |
"shasum": "93684efcea96d2c1e96f88a1dbec48d5cc1e5ebd", |
| 48 |
"tarball": "https://registry.npmjs.org/responselike/-/responselike-0.1.0.tgz" |
| 49 |
}, |
| 50 |
"maintainers": [ |
| 51 |
{ |
| 52 |
"name": "lukechilds", |
| 53 |
"email": "[email protected]" |
| 54 |
} |
| 55 |
], |
| 56 |
"_npmOperationalInternal": { |
| 57 |
"host": "packages-18-east.internal.npmjs.com", |
| 58 |
"tmp": "tmp/responselike-0.1.0.tgz_1493884273503_0.28556131827645004" |
| 59 |
}, |
| 60 |
"directories": {} |
| 61 |
}, |
| 62 |
"0.2.0": { |
| 63 |
"name": "responselike", |
| 64 |
"version": "0.2.0", |
| 65 |
"description": "A response-like object for mocking a Node.js HTTP response stream", |
| 66 |
"main": "src/index.js", |
| 67 |
"scripts": { |
| 68 |
"test": "xo && nyc ava", |
| 69 |
"coverage": "nyc report --reporter=text-lcov | coveralls" |
| 70 |
}, |
| 71 |
"xo": { |
| 72 |
"extends": "xo-lukechilds" |
| 73 |
}, |
| 74 |
"keywords": [ |
| 75 |
"http", |
| 76 |
"https", |
| 77 |
"response", |
| 78 |
"mock", |
| 79 |
"request", |
| 80 |
"responselike" |
| 81 |
], |
| 82 |
"repository": { |
| 83 |
"type": "git", |
| 84 |
"url": "git+https://github.com/lukechilds/responselike.git" |
| 85 |
}, |
| 86 |
"author": { |
| 87 |
"name": "lukechilds" |
| 88 |
}, |
| 89 |
"license": "MIT", |
| 90 |
"devDependencies": { |
| 91 |
"ava": "^0.19.1", |
| 92 |
"coveralls": "^2.13.1", |
| 93 |
"eslint-config-xo-lukechilds": "^1.0.0", |
| 94 |
"nyc": "^10.3.2", |
| 95 |
"xo": "^0.19.0" |
| 96 |
}, |
| 97 |
"gitHead": "3b21755458e0fbae4ad51cc2ba672888e97546e7", |
| 98 |
"bugs": { |
| 99 |
"url": "https://github.com/lukechilds/responselike/issues" |
| 100 |
}, |
| 101 |
"homepage": "https://github.com/lukechilds/responselike#readme", |
| 102 |
"_id": "[email protected]", |
| 103 |
"_npmVersion": "5.0.3", |
| 104 |
"_nodeVersion": "8.0.0", |
| 105 |
"_npmUser": { |
| 106 |
"name": "lukechilds", |
| 107 |
"email": "[email protected]" |
| 108 |
}, |
| 109 |
"dist": { |
| 110 |
"integrity": "sha512-cDn1dhdwkAr3fjk36gC0qB4oU78IdJUl8YKdqTrYzED2O3BWIBGYwxIrWDmC00/Nrn9p3q40icy350fTQgOuxw==", |
| 111 |
"shasum": "81b12fe4b59e4356b41c1f8db8f24dc07db0bace", |
| 112 |
"tarball": "https://registry.npmjs.org/responselike/-/responselike-0.2.0.tgz" |
| 113 |
}, |
| 114 |
"maintainers": [ |
| 115 |
{ |
| 116 |
"name": "lukechilds", |
| 117 |
"email": "[email protected]" |
| 118 |
} |
| 119 |
], |
| 120 |
"_npmOperationalInternal": { |
| 121 |
"host": "s3://npm-registry-packages", |
| 122 |
"tmp": "tmp/responselike-0.2.0.tgz_1497870552306_0.4606168167665601" |
| 123 |
}, |
| 124 |
"directories": {} |
| 125 |
}, |
| 126 |
"1.0.0": { |
| 127 |
"name": "responselike", |
| 128 |
"version": "1.0.0", |
| 129 |
"description": "A response-like object for mocking a Node.js HTTP response stream", |
| 130 |
"main": "src/index.js", |
| 131 |
"scripts": { |
| 132 |
"test": "xo && nyc ava", |
| 133 |
"coverage": "nyc report --reporter=text-lcov | coveralls" |
| 134 |
}, |
| 135 |
"xo": { |
| 136 |
"extends": "xo-lukechilds" |
| 137 |
}, |
| 138 |
"keywords": [ |
| 139 |
"http", |
| 140 |
"https", |
| 141 |
"response", |
| 142 |
"mock", |
| 143 |
"request", |
| 144 |
"responselike" |
| 145 |
], |
| 146 |
"repository": { |
| 147 |
"type": "git", |
| 148 |
"url": "git+https://github.com/lukechilds/responselike.git" |
| 149 |
}, |
| 150 |
"author": { |
| 151 |
"name": "lukechilds" |
| 152 |
}, |
| 153 |
"license": "MIT", |
| 154 |
"devDependencies": { |
| 155 |
"ava": "^0.19.1", |
| 156 |
"coveralls": "^2.13.1", |
| 157 |
"eslint-config-xo-lukechilds": "^1.0.0", |
| 158 |
"get-stream": "^3.0.0", |
| 159 |
"nyc": "^10.3.2", |
| 160 |
"xo": "^0.19.0" |
| 161 |
}, |
| 162 |
"dependencies": { |
| 163 |
"lowercase-keys": "^1.0.0" |
| 164 |
}, |
| 165 |
"gitHead": "8d5ea0b607b862239c10ea5f3af301369773107f", |
| 166 |
"bugs": { |
| 167 |
"url": "https://github.com/lukechilds/responselike/issues" |
| 168 |
}, |
| 169 |
"homepage": "https://github.com/lukechilds/responselike#readme", |
| 170 |
"_id": "[email protected]", |
| 171 |
"_npmVersion": "5.0.3", |
| 172 |
"_nodeVersion": "8.0.0", |
| 173 |
"_npmUser": { |
| 174 |
"name": "lukechilds", |
| 175 |
"email": "[email protected]" |
| 176 |
}, |
| 177 |
"dist": { |
| 178 |
"integrity": "sha512-lBZecxOwpiohz05HLwKmE8tSTNta9RnpSaSM/n52gTGnFfzxg/Ffh2PpmQGl/stsQYyq5Noymvj+Ctwqemjuig==", |
| 179 |
"shasum": "271c6b7fbe4d3efdc5a63f9b43628e59690119de", |
| 180 |
"tarball": "https://registry.npmjs.org/responselike/-/responselike-1.0.0.tgz" |
| 181 |
}, |
| 182 |
"maintainers": [ |
| 183 |
{ |
| 184 |
"name": "lukechilds", |
| 185 |
"email": "[email protected]" |
| 186 |
} |
| 187 |
], |
| 188 |
"_npmOperationalInternal": { |
| 189 |
"host": "s3://npm-registry-packages", |
| 190 |
"tmp": "tmp/responselike-1.0.0.tgz_1498030086941_0.4431796863209456" |
| 191 |
}, |
| 192 |
"directories": {} |
| 193 |
}, |
| 194 |
"1.0.1": { |
| 195 |
"name": "responselike", |
| 196 |
"version": "1.0.1", |
| 197 |
"description": "A response-like object for mocking a Node.js HTTP response stream", |
| 198 |
"main": "src/index.js", |
| 199 |
"scripts": { |
| 200 |
"test": "xo && nyc ava", |
| 201 |
"coverage": "nyc report --reporter=text-lcov | coveralls" |
| 202 |
}, |
| 203 |
"xo": { |
| 204 |
"extends": "xo-lukechilds" |
| 205 |
}, |
| 206 |
"keywords": [ |
| 207 |
"http", |
| 208 |
"https", |
| 209 |
"response", |
| 210 |
"mock", |
| 211 |
"request", |
| 212 |
"responselike" |
| 213 |
], |
| 214 |
"repository": { |
| 215 |
"type": "git", |
| 216 |
"url": "git+https://github.com/lukechilds/responselike.git" |
| 217 |
}, |
| 218 |
"author": { |
| 219 |
"name": "lukechilds" |
| 220 |
}, |
| 221 |
"license": "MIT", |
| 222 |
"devDependencies": { |
| 223 |
"ava": "^0.20.0", |
| 224 |
"coveralls": "^2.13.1", |
| 225 |
"eslint-config-xo-lukechilds": "^1.0.0", |
| 226 |
"get-stream": "^3.0.0", |
| 227 |
"nyc": "^11.0.3", |
| 228 |
"xo": "^0.19.0" |
| 229 |
}, |
| 230 |
"dependencies": { |
| 231 |
"lowercase-keys": "^1.0.0" |
| 232 |
}, |
| 233 |
"gitHead": "0d59bc473f63d2155aa0ff24d81951d134a74ea2", |
| 234 |
"bugs": { |
| 235 |
"url": "https://github.com/lukechilds/responselike/issues" |
| 236 |
}, |
| 237 |
"homepage": "https://github.com/lukechilds/responselike#readme", |
| 238 |
"_id": "[email protected]", |
| 239 |
"_shasum": "7af77f584979e9aee316d5a8923c762bbc0f90d8", |
| 240 |
"_from": ".", |
| 241 |
"_npmVersion": "4.6.1", |
| 242 |
"_nodeVersion": "8.1.2", |
| 243 |
"_npmUser": { |
| 244 |
"name": "lukechilds", |
| 245 |
"email": "[email protected]" |
| 246 |
}, |
| 247 |
"dist": { |
| 248 |
"shasum": "7af77f584979e9aee316d5a8923c762bbc0f90d8", |
| 249 |
"tarball": "https://registry.npmjs.org/responselike/-/responselike-1.0.1.tgz" |
| 250 |
}, |
| 251 |
"maintainers": [ |
| 252 |
{ |
| 253 |
"name": "lukechilds", |
| 254 |
"email": "[email protected]" |
| 255 |
} |
| 256 |
], |
| 257 |
"_npmOperationalInternal": { |
| 258 |
"host": "s3://npm-registry-packages", |
| 259 |
"tmp": "tmp/responselike-1.0.1.tgz_1498827878831_0.5962018952704966" |
| 260 |
}, |
| 261 |
"directories": {} |
| 262 |
}, |
| 263 |
"1.0.2": { |
| 264 |
"name": "responselike", |
| 265 |
"version": "1.0.2", |
| 266 |
"description": "A response-like object for mocking a Node.js HTTP response stream", |
| 267 |
"main": "src/index.js", |
| 268 |
"scripts": { |
| 269 |
"test": "xo && nyc ava", |
| 270 |
"coverage": "nyc report --reporter=text-lcov | coveralls" |
| 271 |
}, |
| 272 |
"xo": { |
| 273 |
"extends": "xo-lukechilds" |
| 274 |
}, |
| 275 |
"keywords": [ |
| 276 |
"http", |
| 277 |
"https", |
| 278 |
"response", |
| 279 |
"mock", |
| 280 |
"request", |
| 281 |
"responselike" |
| 282 |
], |
| 283 |
"repository": { |
| 284 |
"type": "git", |
| 285 |
"url": "git+https://github.com/lukechilds/responselike.git" |
| 286 |
}, |
| 287 |
"author": { |
| 288 |
"name": "lukechilds" |
| 289 |
}, |
| 290 |
"license": "MIT", |
| 291 |
"devDependencies": { |
| 292 |
"ava": "^0.22.0", |
| 293 |
"coveralls": "^2.13.1", |
| 294 |
"eslint-config-xo-lukechilds": "^1.0.0", |
| 295 |
"get-stream": "^3.0.0", |
| 296 |
"nyc": "^11.1.0", |
| 297 |
"xo": "^0.19.0" |
| 298 |
}, |
| 299 |
"dependencies": { |
| 300 |
"lowercase-keys": "^1.0.0" |
| 301 |
}, |
| 302 |
"gitHead": "69366dfd6e161b46bc4503c114d067b87e30dd60", |
| 303 |
"bugs": { |
| 304 |
"url": "https://github.com/lukechilds/responselike/issues" |
| 305 |
}, |
| 306 |
"homepage": "https://github.com/lukechilds/responselike#readme", |
| 307 |
"_id": "[email protected]", |
| 308 |
"_shasum": "918720ef3b631c5642be068f15ade5a46f4ba1e7", |
| 309 |
"_from": ".", |
| 310 |
"_npmVersion": "4.6.1", |
| 311 |
"_nodeVersion": "8.4.0", |
| 312 |
"_npmUser": { |
| 313 |
"name": "lukechilds", |
| 314 |
"email": "[email protected]" |
| 315 |
}, |
| 316 |
"dist": { |
| 317 |
"shasum": "918720ef3b631c5642be068f15ade5a46f4ba1e7", |
| 318 |
"tarball": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz" |
| 319 |
}, |
| 320 |
"maintainers": [ |
| 321 |
{ |
| 322 |
"name": "lukechilds", |
| 323 |
"email": "[email protected]" |
| 324 |
} |
| 325 |
], |
| 326 |
"_npmOperationalInternal": { |
| 327 |
"host": "s3://npm-registry-packages", |
| 328 |
"tmp": "tmp/responselike-1.0.2.tgz_1502988434730_0.1581996688619256" |
| 329 |
}, |
| 330 |
"directories": {} |
| 331 |
}, |
| 332 |
"2.0.0": { |
| 333 |
"name": "responselike", |
| 334 |
"version": "2.0.0", |
| 335 |
"description": "A response-like object for mocking a Node.js HTTP response stream", |
| 336 |
"main": "src/index.js", |
| 337 |
"scripts": { |
| 338 |
"test": "xo && nyc ava", |
| 339 |
"coverage": "nyc report --reporter=text-lcov | coveralls" |
| 340 |
}, |
| 341 |
"xo": { |
| 342 |
"extends": "xo-lukechilds" |
| 343 |
}, |
| 344 |
"keywords": [ |
| 345 |
"http", |
| 346 |
"https", |
| 347 |
"response", |
| 348 |
"mock", |
| 349 |
"request", |
| 350 |
"responselike" |
| 351 |
], |
| 352 |
"repository": { |
| 353 |
"type": "git", |
| 354 |
"url": "git+https://github.com/lukechilds/responselike.git" |
| 355 |
}, |
| 356 |
"author": { |
| 357 |
"name": "lukechilds" |
| 358 |
}, |
| 359 |
"license": "MIT", |
| 360 |
"devDependencies": { |
| 361 |
"ava": "^0.25.0", |
| 362 |
"coveralls": "^3.0.0", |
| 363 |
"eslint-config-xo-lukechilds": "^1.0.0", |
| 364 |
"get-stream": "^3.0.0", |
| 365 |
"nyc": "^11.8.0", |
| 366 |
"xo": "^0.19.0" |
| 367 |
}, |
| 368 |
"dependencies": { |
| 369 |
"lowercase-keys": "^2.0.0" |
| 370 |
}, |
| 371 |
"gitHead": "6dff4cd69cfc91710dc9864e26d3a3dff558376a", |
| 372 |
"bugs": { |
| 373 |
"url": "https://github.com/lukechilds/responselike/issues" |
| 374 |
}, |
| 375 |
"homepage": "https://github.com/lukechilds/responselike#readme", |
| 376 |
"_id": "[email protected]", |
| 377 |
"_nodeVersion": "10.15.3", |
| 378 |
"_npmVersion": "6.9.2", |
| 379 |
"dist": { |
| 380 |
"integrity": "sha512-xH48u3FTB9VsZw7R+vvgaKeLKzT6jOogbQhEe/jewwnZgzPcnyWui2Av6JpoYZF/91uueC+lqhWqeURw5/qhCw==", |
| 381 |
"shasum": "26391bcc3174f750f9a79eacc40a12a5c42d7723", |
| 382 |
"tarball": "https://registry.npmjs.org/responselike/-/responselike-2.0.0.tgz", |
| 383 |
"fileCount": 4, |
| 384 |
"unpackedSize": 4626, |
| 385 |
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdnQooCRA9TVsSAnZWagAAJy8P/iYRnJqTgkCPFJ/JbQVS\n0WIVX62VbUjgBuCPZtY1sc55fENFgyamx9zP54FVPCT3mui/ozPLXp+jqwu1\nMlGPhvGKoUKdbIbDYHeVkge+77RbuIE+f8tQ3pv40Ig6yrnnsKQTO7P99W4R\ndZb+RbpWbvdOfGGVurZdIoCNQm0nKbiWkQE3G6vypVlIHxsI4YQP9FUPxkbi\nikDvA2kYN2mlel4JecgMQ2Z1H1KmeoFHItleGyCsqFMFLH1KCcKJCV8BY+NQ\nXM9wmL6tchtYi0NbXOyHubZfZf0eb4REmujij/vAWU5oJGfb65aUQRDvax5U\nHWVib0OXPLrKQLRotr0hRG+mXGD3KZmunRZFxOqQvHfMvW9qmmeWpu0FJw9I\nyDppUbudoCPpuelr9SIKQEt5/gAuWPzIpXOMRKeeH2+kEBU5eN3AybkZIk+Q\nqOTOVCgYAdCFqev9AMwwb6ZKY9cKGYPPDUCwvZSGkFbci8LaDixQkNBGmpgh\nxtkfnhBA6BLJ+Ld/0hzsTzy+fqGr3WefZ9PilTPFTXRXaeU6noI/XDFA9mhb\nBljujyGGQFpEc1dZ9o6+IJg7JJodWEiUar8o1DCVntO2TZBmgtTwrDeVGluu\nqPhDajkHYA132ary5CVKGlX8fvAfIhmZ/LclxPIm7QMQLIfGqGpfboRacp0E\nSdaB\r\n=0pem\r\n-----END PGP SIGNATURE-----\r\n" |
| 386 |
}, |
| 387 |
"maintainers": [ |
| 388 |
{ |
| 389 |
"name": "lukechilds", |
| 390 |
"email": "[email protected]" |
| 391 |
} |
| 392 |
], |
| 393 |
"_npmUser": { |
| 394 |
"name": "lukechilds", |
| 395 |
"email": "[email protected]" |
| 396 |
}, |
| 397 |
"directories": {}, |
| 398 |
"_npmOperationalInternal": { |
| 399 |
"host": "s3://npm-registry-packages", |
| 400 |
"tmp": "tmp/responselike_2.0.0_1570572839625_0.018801265196460415" |
| 401 |
}, |
| 402 |
"_hasShrinkwrap": false |
| 403 |
} |
| 404 |
}, |
| 405 |
"readme": "# responselike\n\n> A response-like object for mocking a Node.js HTTP response stream\n\n[](https://travis-ci.org/lukechilds/responselike)\n[](https://coveralls.io/github/lukechilds/responselike?branch=master)\n[](https://www.npmjs.com/package/responselike)\n[](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", |
| 406 |
"maintainers": [ |
| 407 |
{ |
| 408 |
"name": "lukechilds", |
| 409 |
"email": "[email protected]" |
| 410 |
} |
| 411 |
], |
| 412 |
"time": { |
| 413 |
"modified": "2019-10-08T22:14:02.319Z", |
| 414 |
"created": "2017-05-04T07:51:15.890Z", |
| 415 |
"0.1.0": "2017-05-04T07:51:15.890Z", |
| 416 |
"0.2.0": "2017-06-19T11:09:12.432Z", |
| 417 |
"1.0.0": "2017-06-21T07:28:07.128Z", |
| 418 |
"1.0.1": "2017-06-30T13:04:39.730Z", |
| 419 |
"1.0.2": "2017-08-17T16:47:15.629Z", |
| 420 |
"2.0.0": "2019-10-08T22:13:59.825Z" |
| 421 |
}, |
| 422 |
"homepage": "https://github.com/lukechilds/responselike#readme", |
| 423 |
"keywords": [ |
| 424 |
"http", |
| 425 |
"https", |
| 426 |
"response", |
| 427 |
"mock", |
| 428 |
"request", |
| 429 |
"responselike" |
| 430 |
], |
| 431 |
"repository": { |
| 432 |
"type": "git", |
| 433 |
"url": "git+https://github.com/lukechilds/responselike.git" |
| 434 |
}, |
| 435 |
"author": { |
| 436 |
"name": "lukechilds" |
| 437 |
}, |
| 438 |
"bugs": { |
| 439 |
"url": "https://github.com/lukechilds/responselike/issues" |
| 440 |
}, |
| 441 |
"license": "MIT", |
| 442 |
"readmeFilename": "README.md" |
| 443 |
} |