{ "name": "concat-stream", "description": "writable stream that concatenates strings or data and calls a callback with the result", "tags": [ "stream", "simple", "util", "utility" ], "version": "0.1.1", "author": { "name": "Max Ogden", "email": "max@maxogden.com" }, "repository": { "type": "git", "url": "http://github.com/maxogden/node-concat-stream.git" }, "bugs": { "url": "http://github.com/maxogden/node-concat-stream/issues" }, "engines": [ "node >= 0.8.0" ], "readme": "# concat-stream\n\n npm install concat-stream\n\nthen\n\n var concat = require('concat-stream')\n var fs = require('fs')\n \n var read = fs.createReadStream('readme.md')\n var write = concat(function(err, data) {})\n \n read.pipe(write)\n \nworks with arrays too!\n\n var write = concat(function(err, data) {})\n write.write([1,2,3])\n write.write([4,5,6])\n write.end()\n // data will be [1,2,3,4,5,6] in the above callback\n\nworks with buffers too! can't believe the deals!\n\n var write = concat(function(err, data) {})\n write.write(new Buffer('hello '))\n write.write(new Buffer('world'))\n write.end()\n // data will be a buffer that toString()s to 'hello world' in the above callback\n \nMIT LICENSE\n", "readmeFilename": "readme.md", "_id": "concat-stream@0.1.1", "dist": { "shasum": "d7f4e278b90cfc4f0f3ef77fe4c03b40eb3f7900" }, "_from": "concat-stream@~0.1.1", "_resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-0.1.1.tgz" }