{"name":"bulk-write-stream","version":"1.1.4","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":{"buffer-from":"^1.0.0","inherits":"^2.0.1","readable-stream":"^2.1.4"},"devDependencies":{"standard":"^11.0.1","tape":"^4.0.0"},"scripts":{"test":"standard && tape test.js"},"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":"534e700de5e20083f8bcad106bf0f715f27c9043","_id":"bulk-write-stream@1.1.4","_npmVersion":"5.6.0","_nodeVersion":"9.7.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"integrity":"sha512-GtKwd/4etuk1hNeprXoESBO1RSeRYJMXKf+O0qHmWdUomLT8ysNEfX/4bZFXr3BK6eukpHiEnhY2uMtEHDM2ng==","shasum":"04b4bdaad61f5a813d8323547383020efffa7d7e","tarball":"http://registry-npm.ywwl.com/bulk-write-stream/download/bulk-write-stream-1.1.4.tgz","fileCount":6,"unpackedSize":6809,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDO5RyjcwXu4o56Gl7n3A7CAHDWmA7QxvKrMtUHZerovgIgVtvSMMBQLt/8inxzOLYXfw1KX5gJmc3CUswBnbSBUMg="}],"size":2681,"noattachment":false,"key":"/bulk-write-stream/-/bulk-write-stream-1.1.4.tgz"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bulk-write-stream_1.1.4_1521773826481_0.14872516777460731"},"_hasShrinkwrap":false,"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":1521773826562,"_cnpm_publish_time":1521773826562,"dist-tags":{"latest":"2.0.1"}}