{"_id":"add-stream","_rev":"219681","name":"add-stream","description":"Append the contents of one stream onto another.","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"wilsonjackson","email":"majid@euphoricsoup.com"}],"time":{"modified":"2021-06-03T15:39:13.000Z","created":"2014-12-06T23:12:51.523Z","1.0.0":"2014-12-06T23:12:51.523Z"},"users":{},"author":{"name":"Majid Burney","email":"moocow@euphoricsoup.com"},"repository":{"type":"git","url":"https://github.com/wilsonjackson/add-stream"},"versions":{"1.0.0":{"name":"add-stream","version":"1.0.0","description":"Append the contents of one stream onto another.","main":"index.js","scripts":{"test":"mocha","cover":"istanbul cover node_modules/.bin/_mocha -- -u exports -R spec"},"repository":{"type":"git","url":"https://github.com/wilsonjackson/add-stream"},"keywords":["stream","append","add","concat","gulpfriendly"],"author":{"name":"Majid Burney","email":"moocow@euphoricsoup.com"},"license":"MIT","bugs":{"url":"https://github.com/wilsonjackson/add-stream/issues"},"homepage":"https://github.com/wilsonjackson/add-stream","dependencies":{},"devDependencies":{"chai":"^1.10.0","event-stream":"^3.1.7","istanbul":"^0.3.4","mocha":"^2.0.1"},"gitHead":"3c72db2b66aa12d96fa69439e88f2892874d2d2b","_id":"add-stream@1.0.0","_shasum":"6a7990437ca736d5e1288db92bd3266d5f5cb2aa","_from":".","_npmVersion":"1.4.24","_npmUser":{"name":"wilsonjackson","email":"majid@euphoricsoup.com"},"maintainers":[{"name":"wilsonjackson","email":"majid@euphoricsoup.com"}],"dist":{"shasum":"6a7990437ca736d5e1288db92bd3266d5f5cb2aa","size":2216,"noattachment":false,"key":"/add-stream/-/add-stream-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/add-stream/download/add-stream-1.0.0.tgz"},"directories":{},"publish_time":1417907571523,"_cnpm_publish_time":1417907571523,"_hasShrinkwrap":false}},"readme":"# add-stream [![Build Status](https://travis-ci.org/wilsonjackson/add-stream.svg?branch=master)](https://travis-ci.org/wilsonjackson/add-stream)\n\n> Append the contents of one stream onto another.\n\n## Usage\n\n```js\nvar fs = require('fs');\nvar es = require('event-stream');\nvar addStream = require('add-stream');\n\n// Append strings/buffers\nfs.createReadStream('1.txt') // 1.txt contains: number1\n\t.pipe(addStream(fs.createReadStream('2.txt'))) // 2.txt contains: number2\n\t.pipe(fs.createWriteStream('appended.txt')); // appended.txt contains: number1number2\n\n// Append object streams\nes.readArray([1, 2, 3])\n\t.pipe(addStream.obj(es.readArray([4, 5, 6])))\n\t.pipe(es.writeArray(function (err, array) {\n\t\tconsole.log(array); // [ 1, 2, 3, 4, 5, 6 ]\n\t}));\n```\n\n## API\n\n### var transformStream = addStream(stream, opts = {})\n\nCreate a transform stream that appends the contents of `stream` onto whatever\nis piped into it. Options are passed to the transform stream's constructor.\n\n### var transformStream = addStream.obj(stream, opts = {})\n\nA convenient shortcut for `addStream(stream, {objectMode: true})`.\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/wilsonjackson/add-stream","bugs":{"url":"https://github.com/wilsonjackson/add-stream/issues"},"license":"MIT"}