{"_id":"multi-write-stream","_rev":"411085","name":"multi-write-stream","description":"Create a writable stream that writes to multiple other writeable streams","dist-tags":{"latest":"2.0.1"},"maintainers":[{"name":"mafintosh","email":""}],"time":{"modified":"2021-08-04T05:08:46.000Z","created":"2015-07-15T16:48:17.766Z","2.0.1":"2015-11-04T00:56:53.585Z","2.0.0":"2015-11-04T00:54:18.533Z","1.1.1":"2015-11-04T00:30:44.173Z","1.1.0":"2015-11-04T00:21:14.329Z","1.0.4":"2015-08-16T09:58:52.470Z","1.0.3":"2015-07-16T05:06:25.392Z","1.0.2":"2015-07-15T16:55:58.818Z","1.0.1":"2015-07-15T16:52:22.688Z","1.0.0":"2015-07-15T16:48:17.766Z"},"users":{"ibakaidov":true},"author":{"name":"Mathias Buus","url":"@mafintosh"},"repository":{"type":"git","url":"https://github.com/mafintosh/multi-write-stream.git"},"versions":{"2.0.1":{"name":"multi-write-stream","version":"2.0.1","description":"Create a writable stream that writes to multiple other writeable streams","main":"index.js","dependencies":{"readable-stream":"^2.0.1"},"devDependencies":{"concat-stream":"^1.5.0","standard":"^4.5.4","tape":"^4.0.0","through2":"^2.0.0"},"scripts":{"test":"standard && node test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/multi-write-stream.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/multi-write-stream/issues"},"homepage":"https://github.com/mafintosh/multi-write-stream","gitHead":"795b1222dfac6dab67bade145d88e5d8b30fd4d8","_id":"multi-write-stream@2.0.1","_shasum":"36ffe094df2ae192c3921518be3e64787c710554","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"36ffe094df2ae192c3921518be3e64787c710554","size":3179,"noattachment":false,"key":"/multi-write-stream/-/multi-write-stream-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/multi-write-stream/download/multi-write-stream-2.0.1.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"directories":{},"publish_time":1446598613585,"_cnpm_publish_time":1446598613585,"_hasShrinkwrap":false},"2.0.0":{"name":"multi-write-stream","version":"2.0.0","description":"Create a writable stream that writes to multiple other writeable streams","main":"index.js","dependencies":{"readable-stream":"^2.0.1"},"devDependencies":{"concat-stream":"^1.5.0","standard":"^4.5.4","tape":"^4.0.0","through2":"^2.0.0"},"scripts":{"test":"standard && node test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/multi-write-stream.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/multi-write-stream/issues"},"homepage":"https://github.com/mafintosh/multi-write-stream","gitHead":"1847474b404666b930d52f778799703abd998065","_id":"multi-write-stream@2.0.0","_shasum":"e42697dd8bd752eaa553c91e6a529d43a4fed5b5","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"e42697dd8bd752eaa553c91e6a529d43a4fed5b5","size":3179,"noattachment":false,"key":"/multi-write-stream/-/multi-write-stream-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/multi-write-stream/download/multi-write-stream-2.0.0.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"directories":{},"publish_time":1446598458533,"_cnpm_publish_time":1446598458533,"_hasShrinkwrap":false},"1.1.1":{"name":"multi-write-stream","version":"1.1.1","description":"Create a writable stream that writes to multiple other writeable streams","main":"index.js","dependencies":{"readable-stream":"^2.0.1"},"devDependencies":{"concat-stream":"^1.5.0","standard":"^4.5.4","tape":"^4.0.0","through2":"^2.0.0"},"scripts":{"test":"standard && node test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/multi-write-stream.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/multi-write-stream/issues"},"homepage":"https://github.com/mafintosh/multi-write-stream","gitHead":"c25226f2d78a0a2c2c3cd2f1e6c1ae2bc05792c7","_id":"multi-write-stream@1.1.1","_shasum":"4090708cf4920e3e10a43caca7dcd5eeb62dfed4","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"4090708cf4920e3e10a43caca7dcd5eeb62dfed4","size":3170,"noattachment":false,"key":"/multi-write-stream/-/multi-write-stream-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/multi-write-stream/download/multi-write-stream-1.1.1.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"directories":{},"publish_time":1446597044173,"_cnpm_publish_time":1446597044173,"_hasShrinkwrap":false},"1.1.0":{"name":"multi-write-stream","version":"1.1.0","description":"Create a writable stream that writes to multiple other writeable streams","main":"index.js","dependencies":{"readable-stream":"^2.0.1"},"devDependencies":{"concat-stream":"^1.5.0","standard":"^4.5.4","tape":"^4.0.0","through2":"^2.0.0"},"scripts":{"test":"standard && node test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/multi-write-stream.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/multi-write-stream/issues"},"homepage":"https://github.com/mafintosh/multi-write-stream","gitHead":"8dce3524d7a3a17f61645ae8008e9523cd0bc498","_id":"multi-write-stream@1.1.0","_shasum":"b6e05f33a2625a352257acfe972b0dfa22f8635a","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"b6e05f33a2625a352257acfe972b0dfa22f8635a","size":3150,"noattachment":false,"key":"/multi-write-stream/-/multi-write-stream-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/multi-write-stream/download/multi-write-stream-1.1.0.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"directories":{},"publish_time":1446596474329,"_cnpm_publish_time":1446596474329,"_hasShrinkwrap":false},"1.0.4":{"name":"multi-write-stream","version":"1.0.4","description":"Create a writable stream that writes to multiple other writeable streams","main":"index.js","dependencies":{"readable-stream":"^2.0.1"},"devDependencies":{"concat-stream":"^1.5.0","standard":"^4.5.4","tape":"^4.0.0","through2":"^2.0.0"},"scripts":{"test":"standard && node test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/multi-write-stream.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/multi-write-stream/issues"},"homepage":"https://github.com/mafintosh/multi-write-stream","gitHead":"7f012b8629a8bc06b0fb0243caf941fecf2aa56e","_id":"multi-write-stream@1.0.4","_shasum":"6575cfc7dd947c55faf6a181704be9e1e0eb137f","_from":".","_npmVersion":"2.13.4","_nodeVersion":"2.5.0","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"6575cfc7dd947c55faf6a181704be9e1e0eb137f","size":2721,"noattachment":false,"key":"/multi-write-stream/-/multi-write-stream-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/multi-write-stream/download/multi-write-stream-1.0.4.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"directories":{},"publish_time":1439719132470,"_cnpm_publish_time":1439719132470,"_hasShrinkwrap":false},"1.0.3":{"name":"multi-write-stream","version":"1.0.3","description":"Create a writable stream that writes to multiple other writeable streams","main":"index.js","dependencies":{"readable-stream":"^2.0.1"},"devDependencies":{"concat-stream":"^1.5.0","standard":"^4.5.4","tape":"^4.0.0","through2":"^2.0.0"},"scripts":{"test":"standard && node test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/multi-write-stream.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/multi-write-stream/issues"},"homepage":"https://github.com/mafintosh/multi-write-stream","gitHead":"a842e9d7f7f2108e380d47f1c3f9bcbb270c870f","_id":"multi-write-stream@1.0.3","_shasum":"cee373dc9c3ba3e285d3304bf1f7cd5ad6287023","_from":".","_npmVersion":"2.12.1","_nodeVersion":"2.3.4","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"cee373dc9c3ba3e285d3304bf1f7cd5ad6287023","size":2671,"noattachment":false,"key":"/multi-write-stream/-/multi-write-stream-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/multi-write-stream/download/multi-write-stream-1.0.3.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"directories":{},"publish_time":1437023185392,"_cnpm_publish_time":1437023185392,"_hasShrinkwrap":false},"1.0.2":{"name":"multi-write-stream","version":"1.0.2","description":"Create a writable stream that writes to multiple other writeable streams","main":"index.js","dependencies":{"readable-stream":"^2.0.1"},"devDependencies":{"concat-stream":"^1.5.0","standard":"^4.5.4","tape":"^4.0.0","through2":"^2.0.0"},"scripts":{"test":"standard && node test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/multi-write-stream.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/multi-write-stream/issues"},"homepage":"https://github.com/mafintosh/multi-write-stream","gitHead":"f6a750646a984b4c0f87df603c9fe447a7cfc927","_id":"multi-write-stream@1.0.2","_shasum":"b9d35d08bb1b5d08a78c61c41c220b3c22b64ff7","_from":".","_npmVersion":"2.12.1","_nodeVersion":"2.3.4","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"b9d35d08bb1b5d08a78c61c41c220b3c22b64ff7","size":2660,"noattachment":false,"key":"/multi-write-stream/-/multi-write-stream-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/multi-write-stream/download/multi-write-stream-1.0.2.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"directories":{},"publish_time":1436979358818,"_cnpm_publish_time":1436979358818,"_hasShrinkwrap":false},"1.0.1":{"name":"multi-write-stream","version":"1.0.1","description":"Create a writable stream that writes to multiple other writeable streams","main":"index.js","dependencies":{"readable-stream":"^2.0.1"},"devDependencies":{"concat-stream":"^1.5.0","standard":"^4.5.4","tape":"^4.0.0","through2":"^2.0.0"},"scripts":{"test":"standard && node test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/multi-write-stream.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/multi-write-stream/issues"},"homepage":"https://github.com/mafintosh/multi-write-stream","gitHead":"95728452ee569ebd4978d4d4f3ee1d3750a3ea51","_id":"multi-write-stream@1.0.1","_shasum":"0930a59fd30f9cea92af498a7e9887d97a5feecc","_from":".","_npmVersion":"2.12.1","_nodeVersion":"2.3.4","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"0930a59fd30f9cea92af498a7e9887d97a5feecc","size":2666,"noattachment":false,"key":"/multi-write-stream/-/multi-write-stream-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/multi-write-stream/download/multi-write-stream-1.0.1.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"directories":{},"publish_time":1436979142688,"_cnpm_publish_time":1436979142688,"_hasShrinkwrap":false},"1.0.0":{"name":"multi-write-stream","version":"1.0.0","description":"Create a writable stream that writes to multiple other writeable streams","main":"index.js","dependencies":{"readable-stream":"^2.0.1"},"devDependencies":{"concat-stream":"^1.5.0","standard":"^4.5.4","tape":"^4.0.0","through2":"^2.0.0"},"scripts":{"test":"standard && node test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/multi-write-stream.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/multi-write-stream/issues"},"homepage":"https://github.com/mafintosh/multi-write-stream","gitHead":"f988c85a335a403cbb213c1a71b6a53caadab85e","_id":"multi-write-stream@1.0.0","_shasum":"c5b265f030bdb75fd77a37b586ee6d79efcde426","_from":".","_npmVersion":"2.12.1","_nodeVersion":"2.3.4","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"c5b265f030bdb75fd77a37b586ee6d79efcde426","size":2663,"noattachment":false,"key":"/multi-write-stream/-/multi-write-stream-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/multi-write-stream/download/multi-write-stream-1.0.0.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"directories":{},"publish_time":1436978897766,"_cnpm_publish_time":1436978897766,"_hasShrinkwrap":false}},"readme":"# multi-write-stream\n\nCreate a writable stream that writes to multiple other writeable streams\n\n```\nnpm install multi-write-stream\n```\n\n[![build status](http://img.shields.io/travis/mafintosh/multi-write-stream.svg?style=flat)](http://travis-ci.org/mafintosh/multi-write-stream)\n\n## Usage\n\n``` js\nvar multi = require('multi-write-stream')\nvar fs = require('fs')\n\nvar stream = multi([\n  fs.createWriteStream('file-1'),\n  fs.createWriteStream('file-2')\n])\n\nstream.write('hello')\nstream.write('world')\n\nstream.end(function () {\n  // both file-1 and file-2 now contains 'helloworld'\n})\n```\n\n## API\n\n#### `stream = multi(arrayOfWritableStreams, [options])`\n\nCreate a new multi write stream. Options are forwarded to the\nstream constructor. Other options include\n\n``` js\n{\n  autoDestroy: true // destroy the stream if a child stream errors\n}\n```\n\n#### `objStream = multi.obj(arrayOfWritableStreams, [options])`\n\nSame as above but sets `objectMode = true`\n\n#### `stream.add(otherStream)`\n\nAdd a stream after instantiating the multi writer\n\n#### `stream.remove(otherStream)`\n\nRemove a stream after instantiating the multi writer\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/mafintosh/multi-write-stream","bugs":{"url":"https://github.com/mafintosh/multi-write-stream/issues"},"license":"MIT"}