{"name":"bulk-write-stream","version":"1.0.0","description":"Writable stream that forwards everything in the highWaterMark buffer to a custom write function using the new writev api in streams","main":"index.js","dependencies":{"readable-stream":"^1.1.13"},"devDependencies":{"tape":"^4.0.0"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/bulk-write-stream.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/bulk-write-stream/issues"},"homepage":"https://github.com/mafintosh/bulk-write-stream","gitHead":"466d3f84ccb046f6a95566a3cf7213beb424f54b","_id":"bulk-write-stream@1.0.0","scripts":{},"_shasum":"fb7a7d7cfadecdbc7aeebcc09a0af11363e5a69d","_from":".","_npmVersion":"2.10.1","_nodeVersion":"2.1.0","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"fb7a7d7cfadecdbc7aeebcc09a0af11363e5a69d","tarball":"http://registry-npm.ywwl.com/bulk-write-stream/download/bulk-write-stream-1.0.0.tgz","integrity":"sha512-kqF4D1878JxGfijnIjXElCemdoWSjliK0etO19zsMZGBeQYWz1OYKerum+hlOiTkOFUrwe9Hy16EF7mof5wmPA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBq/fG0/dTxv32SsV1ncIDXdPZUUhHLzb0lkBJ/j/AHgAiBEe0WyOn8SMco/xMdM0ordobUOMh1WmrjpOKgdCvBLiA=="}],"size":2276,"noattachment":false,"key":"/bulk-write-stream/-/bulk-write-stream-1.0.0.tgz"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"directories":{},"readme":"# bulk-write-stream\n\nWritable stream that forwards everything in the `highWaterMark` buffer\nto a custom `write` function using the new [writev](https://nodejs.org/api/stream.html#stream_writable_writev_chunks_callback) api in streams\n\n```\nnpm install bulk-write-stream\n```\n\n[![build status](http://img.shields.io/travis/mafintosh/bulk-write-stream.svg?style=flat)](http://travis-ci.org/mafintosh/bulk-write-stream)\n\n## Usage\n\n``` js\nvar bulk = require('bulk-write-stream')\n\nvar ws = bulk.obj(function (list, cb) {\n  console.log('should write list of objects', list)\n  cb()\n})\n\nws.write('a')\nws.write('b')\nws.write('c')\nws.write('d')\n```\n\n## API\n\n#### `var ws = bulk([options], write, [flush])`\n\nCreate a new binary bulk write stream. Options are forwarded to the writable stream constructor.\nWrite is called with `write(list, cb)` where list is everything currently buffered in the writable stream.\n\nIf you specify a flush function that will be called with `flush(cb)` before the stream emits `finish`.\n\n#### `var ws = bulk.obj([options], write, [flush])`\n\nA shorthand for setting `objectMode: true`\n\n## License\n\nMIT\n","publish_time":1432909306687,"_cnpm_publish_time":1432909306687,"dist-tags":{"latest":"2.0.1"}}