{"_id":"is-node-stream","_rev":"2764821","name":"is-node-stream","description":"Strictly and correctly checks if value is a nodejs stream.","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"time":{"modified":"2022-04-02T08:53:51.000Z","created":"2015-09-08T02:22:05.987Z","1.0.0":"2015-09-08T03:04:48.573Z","0.0.0":"2015-09-08T02:22:05.987Z"},"users":{},"author":{"name":"Charlike Mike Reagent","email":"@tunnckoCore","url":"http://www.tunnckocore.tk"},"repository":{"type":"git","url":"git+https://github.com/tunnckocore/is-node-stream.git"},"versions":{"1.0.0":{"name":"is-node-stream","version":"1.0.0","description":"Strictly and correctly checks if value is a nodejs stream.","repository":{"type":"git","url":"git+https://github.com/tunnckocore/is-node-stream.git"},"author":{"name":"Charlike Mike Reagent","email":"@tunnckoCore","url":"http://www.tunnckocore.tk"},"main":"index.js","license":"MIT","scripts":{"test":"standard && node test.js"},"dependencies":{"is-node-emitter":"^1.0.2"},"devDependencies":{"assertit":"^0.1.0"},"files":["index.js"],"keywords":["check","correct","detect","is","readable","stream","streams","strictly","strictness","through","type","udplex","util","utils","validate","writable"],"gitHead":"2d260eea05a4d790c8343df9bebe26b8d99d184c","bugs":{"url":"https://github.com/tunnckocore/is-node-stream/issues"},"homepage":"https://github.com/tunnckocore/is-node-stream#readme","_id":"is-node-stream@1.0.0","_shasum":"f8e18da7bf1a66a652d8860c834ab2c6c7a6e896","_from":".","_npmVersion":"3.2.2","_nodeVersion":"3.0.0","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"dist":{"shasum":"f8e18da7bf1a66a652d8860c834ab2c6c7a6e896","size":3046,"noattachment":false,"key":"/is-node-stream/-/is-node-stream-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-node-stream/download/is-node-stream-1.0.0.tgz"},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"directories":{},"publish_time":1441681488573,"_hasShrinkwrap":false,"_cnpm_publish_time":1441681488573,"_cnpmcore_publish_time":"2021-12-16T22:33:03.814Z"},"0.0.0":{"name":"is-node-stream","version":"0.0.0","description":"Strictly and correctly checks if value is a nodejs stream.","repository":{"type":"git","url":"git+https://github.com/tunnckocore/is-node-stream.git"},"author":{"name":"Charlike Mike Reagent","email":"@tunnckoCore","url":"http://www.tunnckocore.tk"},"main":"index.js","license":"MIT","scripts":{"test":"standard && node test.js"},"dependencies":{"is-node-emitter":"^1.0.2"},"devDependencies":{"assertit":"^0.1.0"},"files":["index.js"],"keywords":[],"gitHead":"edecab980a28e03a34c3f0cf5701c4123b28d8cd","bugs":{"url":"https://github.com/tunnckocore/is-node-stream/issues"},"homepage":"https://github.com/tunnckocore/is-node-stream#readme","_id":"is-node-stream@0.0.0","_shasum":"b77492c8d6de14394b40d7d989bdd4fb7dc400c6","_from":".","_npmVersion":"3.2.2","_nodeVersion":"3.0.0","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"dist":{"shasum":"b77492c8d6de14394b40d7d989bdd4fb7dc400c6","size":2933,"noattachment":false,"key":"/is-node-stream/-/is-node-stream-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-node-stream/download/is-node-stream-0.0.0.tgz"},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"directories":{},"publish_time":1441678925987,"_hasShrinkwrap":false,"_cnpm_publish_time":1441678925987,"_cnpmcore_publish_time":"2021-12-16T22:33:04.016Z"}},"readme":"# [is-node-stream][author-www-url] [![npmjs.com][npmjs-img]][npmjs-url] [![The MIT License][license-img]][license-url] \n\n> Strictly and correctly checks if value is a nodejs stream.\n\n[![code climate][codeclimate-img]][codeclimate-url] [![standard code style][standard-img]][standard-url] [![travis build status][travis-img]][travis-url] [![coverage status][coveralls-img]][coveralls-url] [![dependency status][david-img]][david-url]\n\n\n## Install\n```\nnpm i is-node-stream --save\n```\n\n\n## Usage\n> For more use-cases see the [tests](./test.js)\n\n```js\nvar stream = require('stream')\nvar isNodeStream = require('is-node-stream')\n```\n\n### isNodeStream(val) returns `true` when\n\n```js\nisNodeStream(new stream.Stream())\nisNodeStream(new stream.Duplex())\nisNodeStream(new stream.Readable())\nisNodeStream(new stream.Writable())\nisNodeStream(new stream.Transform())\nisNodeStream(new stream.PassThrough())\nisNodeStream(new net.Socket())\nisNodeStream(fs.createReadStream('package.json'))\n```\n\n### isNodeStream.readable(val) returns `true` when\n\n```js\nisNodeStream.readable(process.stdin)\nisNodeStream.readable(new stream.Duplex())\nisNodeStream.readable(new stream.Readable())\nisNodeStream.readable(new stream.Transform())\nisNodeStream.readable(new stream.PassThrough())\nisNodeStream.readable(fs.createReadStream('package.json'))\n```\n### isNodeStream.writable(val) returns `true` when\n\n```js\nisNodeStream.writable(process.stdout)\nisNodeStream.writable(new stream.Duplex())\nisNodeStream.writable(new stream.Writable())\nisNodeStream.writable(new stream.Transform())\nisNodeStream.writable(new stream.PassThrough())\nisNodeStream.writable(fs.createWriteStream('foobar'))\n```\n\n### isNodeStream.duplex(val) returns `true` when\n\n```js\nisNodeStream.duplex(new stream.Duplex())\nisNodeStream.duplex(new stream.Transform())\nisNodeStream.duplex(new stream.PassThrough())\n```\n\n\n## Related\n- [dush](https://github.com/tunnckocore/dush): Minimalist 1.5kb event delegation for the browser (IE8+) and nodejs.\n- [is-emitter](https://github.com/tunnckocore/is-emitter): Check that given value is EventEmitter, not so strict as `is-node-emitter`.\n- [is-node-emitter](https://github.com/tunnckocore/is-node-emitter): Strictly checks that given value is nodejs EventEmitter… [more](https://github.com/jonschlinkert/to-emitter)\n- [is-stream](https://github.com/sindresorhus/is-stream): Check if something is a Node.js stream\n- [to-emitter](https://github.com/jonschlinkert/to-emitter): Convert any object into an event-emitter, and emits events with the… [more](https://github.com/jonschlinkert/to-emitter)\n\n\n## Contributing\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/tunnckoCore/is-node-stream/issues/new).  \nBut before doing anything, please read the [CONTRIBUTING.md](./CONTRIBUTING.md) guidelines.\n\n\n## [Charlike Make Reagent](http://j.mp/1stW47C) [![new message to charlike][new-message-img]][new-message-url] [![freenode #charlike][freenode-img]][freenode-url]\n\n[![tunnckocore.tk][author-www-img]][author-www-url] [![keybase tunnckocore][keybase-img]][keybase-url] [![tunnckoCore npm][author-npm-img]][author-npm-url] [![tunnckoCore twitter][author-twitter-img]][author-twitter-url] [![tunnckoCore github][author-github-img]][author-github-url]\n\n\n[npmjs-url]: https://www.npmjs.com/package/is-node-stream\n[npmjs-img]: https://img.shields.io/npm/v/is-node-stream.svg?label=is-node-stream\n\n[license-url]: https://github.com/tunnckoCore/is-node-stream/blob/master/LICENSE.md\n[license-img]: https://img.shields.io/badge/license-MIT-blue.svg\n\n\n[codeclimate-url]: https://codeclimate.com/github/tunnckoCore/is-node-stream\n[codeclimate-img]: https://img.shields.io/codeclimate/github/tunnckoCore/is-node-stream.svg\n\n[travis-url]: https://travis-ci.org/tunnckoCore/is-node-stream\n[travis-img]: https://img.shields.io/travis/tunnckoCore/is-node-stream.svg\n\n[coveralls-url]: https://coveralls.io/r/tunnckoCore/is-node-stream\n[coveralls-img]: https://img.shields.io/coveralls/tunnckoCore/is-node-stream.svg\n\n[david-url]: https://david-dm.org/tunnckoCore/is-node-stream\n[david-img]: https://img.shields.io/david/tunnckoCore/is-node-stream.svg\n\n[standard-url]: https://github.com/feross/standard\n[standard-img]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg\n\n\n[author-www-url]: http://www.tunnckocore.tk\n[author-www-img]: https://img.shields.io/badge/www-tunnckocore.tk-fe7d37.svg\n\n[keybase-url]: https://keybase.io/tunnckocore\n[keybase-img]: https://img.shields.io/badge/keybase-tunnckocore-8a7967.svg\n\n[author-npm-url]: https://www.npmjs.com/~tunnckocore\n[author-npm-img]: https://img.shields.io/badge/npm-~tunnckocore-cb3837.svg\n\n[author-twitter-url]: https://twitter.com/tunnckoCore\n[author-twitter-img]: https://img.shields.io/badge/twitter-@tunnckoCore-55acee.svg\n\n[author-github-url]: https://github.com/tunnckoCore\n[author-github-img]: https://img.shields.io/badge/github-@tunnckoCore-4183c4.svg\n\n[freenode-url]: http://webchat.freenode.net/?channels=charlike\n[freenode-img]: https://img.shields.io/badge/freenode-%23charlike-5654a4.svg\n\n[new-message-url]: https://github.com/tunnckoCore/ama\n[new-message-img]: https://img.shields.io/badge/ask%20me-anything-green.svg","_attachments":{},"homepage":"https://github.com/tunnckocore/is-node-stream#readme","bugs":{"url":"https://github.com/tunnckocore/is-node-stream/issues"},"license":"MIT"}