{"name":"bulk-write-stream","version":"1.1.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":{"standard":"^5.3.1","tape":"^4.0.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"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":"17d6ba1f5ebf689274511b4784126b277eeed74d","_id":"bulk-write-stream@1.1.0","_shasum":"a030134af83ea59159791994888a5b5de65191f0","_from":".","_npmVersion":"2.13.2","_nodeVersion":"2.5.0","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"a030134af83ea59159791994888a5b5de65191f0","tarball":"http://registry-npm.ywwl.com/bulk-write-stream/download/bulk-write-stream-1.1.0.tgz","integrity":"sha512-1CqypAU01IIovQz3MZwrPJAjuucGHfBDmv0BRNAFnABuyXqBtwfJ64zwpN361bSrTigKX2NSZ7YLjNGVKfM2AQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCk5/RCkEvCeq3ndXNzV/UaX60ubmpJ1jbDFM2iRs/VgQIhAPwEkAL/tNLhs0S0zgHCtf/nvX4kPqahp0IykQ0y1udR"}],"size":2691,"noattachment":false,"key":"/bulk-write-stream/-/bulk-write-stream-1.1.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":1443129535149,"_cnpm_publish_time":1443129535149,"dist-tags":{"latest":"2.0.1"}}