{"name":"bulk-write-stream","version":"1.1.1","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":"1e8cc91d27aa19faa0d5775bc3fc92eedd591e7a","_id":"bulk-write-stream@1.1.1","_shasum":"f2e74b84b12ab9913f7a9285926c04d55151ac2c","_from":".","_npmVersion":"2.13.2","_nodeVersion":"2.5.0","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"f2e74b84b12ab9913f7a9285926c04d55151ac2c","tarball":"http://registry-npm.ywwl.com/bulk-write-stream/download/bulk-write-stream-1.1.1.tgz","integrity":"sha512-XZqVp7sFEvge7T41OY83kaQa6rgPlVRJYvLiGv2MoPjGbnHfKXElD0Hd7FKbJ+UptgMiCUFXiPOzvWwmWp6AXw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHAU8WkUQ8Z/A8yocvtdcqTbBHAEgV7SJAnGK0zwgjqgAiBBQiTVrOuGEH14dIlAERPaTMsdPw8wNYyxFJWy+F66xA=="}],"size":2721,"noattachment":false,"key":"/bulk-write-stream/-/bulk-write-stream-1.1.1.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":1443205504194,"_cnpm_publish_time":1443205504194,"dist-tags":{"latest":"2.0.1"}}