{"name":"is-stream","version":"2.0.0","description":"Check if something is a Node.js stream","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-stream.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["stream","type","streams","writable","readable","duplex","transform","check","detect","is"],"devDependencies":{"@types/node":"^11.13.6","ava":"^1.4.1","tempy":"^0.3.0","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"1a70a7f985a00bf25de8437e68c849bf0e434bfb","bugs":{"url":"https://github.com/sindresorhus/is-stream/issues"},"homepage":"https://github.com/sindresorhus/is-stream#readme","_id":"is-stream@2.0.0","_nodeVersion":"8.16.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==","shasum":"bde9c32680d6fae04129d6ac9d921ce7815f78e3","tarball":"http://registry-npm.ywwl.com/is-stream/download/is-stream-2.0.0.tgz","fileCount":5,"unpackedSize":5691,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcu1CuCRA9TVsSAnZWagAApkwP/1LBH7WhFysLIo7y37ZT\nZWM6y/PcOCxrRAAM8qFNv9VQEGVEtjJLZBJNBuqGpGIsfctYn5cViUF1ZQNQ\nL5rEzvJBy8aNzKRNmQf/itbBGRkC75NMWCZISPPM3XxgvP2o6Bnw7P2Nu0if\n75j93Hqg4GcYFQjV9rCYagSdxJEPEIDI6d8PH2Tgdwj+581X0aNx90oEu6vU\nk33vTvMbhcsuc+19W/Asr5BpHJ2foNcTLTN1QvLCKkE1sZfCQ42EEvTmp600\n875RGh8GbId9D8kpK94pulnog1ARRpkLpvJ+ONFw/16p2hoKBLHOxUoSKZY8\nK8RPCkrdC6J2JgIyh1Yhysu0biN6jT9wgwnIcJraIUEkbNHXerCBgug+Fl3I\n4sQ+2IEIoLne+t0oqwJKoQPTgsJSVdPOVzyDps94vhxX3nB+82gOWP6qquQ9\nfTAWcmkB3cRDImlq8uCd2kAtLmXZcG+AyC1pCqA3PIPrdZG+2lWOX38Geqnw\nion1Ws4jI6d+/aJ+hs/DFEeXVvKpc+9cnFbqFKYtFRutmywquZ8mVOgSl6ez\nnV282upQ8cMpU4txk7R+PDgOz0uhIa2AA+hQ9L863HDsfOwr4CgHYGxZt/AL\nkYUoaAo6MxUdkL7rjePxho1ZDTJtK26k+5Eg+iyD3xDzVyhu2HCxZNPiRWoA\npfkb\r\n=yjey\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDOfB8f+8WY8o1Poa7faUhW/Y/unfQUWYjDOKIq05+HSgIhAIv1XVqBHYFk1WwIhopVp3Ys/VzTSv+fz8ZA5m8Kudjn"}],"size":2080,"noattachment":false,"key":"/is-stream/-/is-stream-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-stream_2.0.0_1555779757689_0.1309729016157941"},"_hasShrinkwrap":false,"readme":"# is-stream\n\n> Check if something is a [Node.js stream](https://nodejs.org/api/stream.html)\n\n## Install\n\n```sh\nnpm install is-stream\n```\n\n## Usage\n\n```js\nimport fs from 'node:fs';\nimport {isStream} from 'is-stream';\n\nisStream(fs.createReadStream('unicorn.png'));\n//=> true\n\nisStream({});\n//=> false\n```\n\n## API\n\n### isStream(stream, options?)\n\nReturns a `boolean` for whether it's a [`Stream`](https://nodejs.org/api/stream.html#stream_stream).\n\n### isWritableStream(stream, options?)\n\nReturns a `boolean` for whether it's a [`stream.Writable`](https://nodejs.org/api/stream.html#stream_class_stream_writable), an [`http.OutgoingMessage`](https://nodejs.org/api/http.html#class-httpoutgoingmessage), an [`http.ServerResponse`](https://nodejs.org/api/http.html#class-httpserverresponse) or an [`http.ClientRequest`](https://nodejs.org/api/http.html#class-httpserverresponse).\n\n### isReadableStream(stream, options?)\n\nReturns a `boolean` for whether it's a [`stream.Readable`](https://nodejs.org/api/stream.html#stream_class_stream_readable) or an [`http.IncomingMessage`](https://nodejs.org/api/http.html#class-httpincomingmessage).\n\n### isDuplexStream(stream, options?)\n\nReturns a `boolean` for whether it's a [`stream.Duplex`](https://nodejs.org/api/stream.html#stream_class_stream_duplex).\n\n### isTransformStream(stream, options?)\n\nReturns a `boolean` for whether it's a [`stream.Transform`](https://nodejs.org/api/stream.html#stream_class_stream_transform).\n\n### Options\n\n#### checkOpen\n\nType: `boolean`\\\nDefault: `true`\n\nWhen this option is `true`, the method returns `false` if the stream has already been closed.\n\n## Related\n\n- [is-file-stream](https://github.com/jamestalmage/is-file-stream) - Detect if a stream is a file stream\n","publish_time":1555779757870,"_cnpm_publish_time":1555779757870,"dist-tags":{"latest":"4.0.1"}}