{"_id":"src-stream","_rev":"231057","name":"src-stream","description":"Wrap readable streams to turn them into passthrough streams.","dist-tags":{"latest":"0.1.1"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T15:46:09.000Z","created":"2015-07-14T22:03:59.257Z","0.1.1":"2015-07-15T02:26:54.015Z","0.1.0":"2015-07-14T22:03:59.257Z"},"users":{},"author":{"name":"Brian Woodward","url":"https://github.com/doowb"},"repository":{"type":"git","url":"git+https://github.com/doowb/src-stream.git"},"versions":{"0.1.1":{"name":"src-stream","description":"Wrap readable streams to turn them into passthrough streams.","version":"0.1.1","homepage":"https://github.com/doowb/src-stream","author":{"name":"Brian Woodward","url":"https://github.com/doowb"},"repository":{"type":"git","url":"git+https://github.com/doowb/src-stream.git"},"bugs":{"url":"https://github.com/doowb/src-stream/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*"},"dependencies":{"duplexify":"^3.4.2","merge-stream":"^0.1.8","through2":"^2.0.0"},"verb":{"related":{"list":["stream-loader","merge-stream","duplexify","through2"]}},"gitHead":"943a7222b1f7a72455a4a3f74cb0b8245f90ad81","_id":"src-stream@0.1.1","_shasum":"d93f46d281a3700281ec0f30b33a03143894a681","_from":".","_npmVersion":"2.12.1","_nodeVersion":"0.12.0","_npmUser":{"name":"doowb","email":"brian.woodward@gmail.com"},"dist":{"shasum":"d93f46d281a3700281ec0f30b33a03143894a681","size":2468,"noattachment":false,"key":"/src-stream/-/src-stream-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/src-stream/download/src-stream-0.1.1.tgz"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1436927214015,"_cnpm_publish_time":1436927214015,"_hasShrinkwrap":false},"0.1.0":{"name":"src-stream","description":"Wrap readable streams to turn them into passthrough streams.","version":"0.1.0","homepage":"https://github.com/doowb/src-stream","author":{"name":"Brian Woodward","url":"https://github.com/doowb"},"repository":{"type":"git","url":"git+https://github.com/doowb/src-stream.git"},"bugs":{"url":"https://github.com/doowb/src-stream/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*"},"dependencies":{"duplexify":"^3.4.2","merge-stream":"^0.1.8","through2":"^2.0.0"},"gitHead":"d3f755194c5bb11f9bea7c76b5f990b2bd3590f3","_id":"src-stream@0.1.0","_shasum":"9040075ae08bd0d5a111fee91640c1ae972e87e1","_from":".","_npmVersion":"2.12.1","_nodeVersion":"0.12.0","_npmUser":{"name":"doowb","email":"brian.woodward@gmail.com"},"dist":{"shasum":"9040075ae08bd0d5a111fee91640c1ae972e87e1","size":2507,"noattachment":false,"key":"/src-stream/-/src-stream-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/src-stream/download/src-stream-0.1.0.tgz"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1436911439257,"_cnpm_publish_time":1436911439257,"_hasShrinkwrap":false}},"readme":"# src-stream [![NPM version](https://badge.fury.io/js/src-stream.svg)](http://badge.fury.io/js/src-stream)  [![Build Status](https://travis-ci.org/doowb/src-stream.svg)](https://travis-ci.org/doowb/src-stream)\n\n> Wrap readable streams to turn them into passthrough streams.\n\nInstall with [npm](https://www.npmjs.com/)\n\n```sh\n$ npm i src-stream --save\n```\n\n## Usage\n\n```js\nvar src = require('src-stream');\n```\n\n## API\n\n### [srcStream](index.js#L39)\n\nWrap a source stream to passthrough any data that's being written to it.\n\n**Params**\n\n* `stream` **{Stream}**: Readable stream to be wrapped.\n* `returns` **{Stream}**: Duplex stream to handle reading and writing.\n\n**Example**\n\n```js\nvar src = require('src-stream');\n\n// wrap something that returns a readable stream\nvar stream = src(plugin());\n\nfs.createReadStream('./package.json')\n  .pipe(stream)\n  .on('data', console.log)\n  .on('end', function () {\n    console.log();\n    console.log('Finished');\n    console.log();\n  });\n```\n\n## Related projects\n\n* [duplexify](https://github.com/mafintosh/duplexify): Turn a writeable and readable stream into a streams2 duplex stream with support for async… [more](https://github.com/mafintosh/duplexify)\n* [merge-stream](https://github.com/grncdr/merge-stream): Create a stream that emits events from multiple other streams\n* [stream-loader](https://github.com/jonschlinkert/stream-loader): create a read stream from a glob of files. can be used as a loader-cache… [more](https://github.com/jonschlinkert/stream-loader)\n* [through2](https://github.com/rvagg/through2#readme): A tiny wrapper around Node streams2 Transform to avoid explicit subclassing noise\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm i -d && npm test\n```\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/doowb/src-stream/issues/new)\n\n## Author\n\n**Brian Woodward**\n\n+ [github/doowb](https://github.com/doowb)\n+ [twitter/doowb](http://twitter.com/doowb)\n\n## License\n\nCopyright © 2015 Brian Woodward\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on July 14, 2015._","_attachments":{},"homepage":"https://github.com/doowb/src-stream","bugs":{"url":"https://github.com/doowb/src-stream/issues"},"license":"MIT"}