{"name":"bulk-write-stream","version":"2.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":{"inherits":"^2.0.3","readable-stream":"^3.1.1"},"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":"8c6241a1db0eb9101d708c8626b76c1c5c4e5425","_id":"bulk-write-stream@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"integrity":"sha512-wFAa8+yXEvYO0W/zxh3q5X3cqxk0SyjbTH77pF82nEm0XY2ABu4zwx7/BA5bDgTjXgeCm0QEgnQCQ/c9d87BdA==","shasum":"c25ab587dfd43cd704cf48f0905290a2bc0dd36b","tarball":"http://registry-npm.ywwl.com/bulk-write-stream/download/bulk-write-stream-2.0.0.tgz","fileCount":6,"unpackedSize":6741,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcWA/hCRA9TVsSAnZWagAA4R0P/AoFoUkOdg5Ob3qBl6Qg\ndj+A7NDyG6k0tOvK9N/cm09BwlsHaebwIN/oTkyPyrcRWofSsbILhNSIDVJW\nVqjwg0vlHDqzhf2CBcGvA13iAPF5i2KtyfM6krtlPxJzTYEjw38yC0ZfhY/G\neWLwA2vXYI9/pOB+/86dm/Y0GQYkCQb7/JVdGnDU90mt+Cp123q1+t3HOMwY\nO656BPAUMOdFFS8S1r2ItrpCXqjLPYztJjQutk4jfbG5vH1L4uPwFZbx0N7l\nmbkmBJalbpV48xtKhNj+Vj9MPqf6l8iPNtoKU0M+FLUPehazV+MntDZU3+hV\niyOPuQmnH4+rNtYKHm8vM/ft16xCmRXVbSeFykocjK2AQ0oVt4lOUzYOsoSc\ndUB63w48MUoiqlGyGeddvoe+DPORR4iwc0YZMffO2Et0qafReOt28HAasKaE\n0xOtt4byqTLzZuvSk29xZj+0XH4S7L/fqAyjYSApuCDaAxKXmG5kZiWd76rN\nMK3bf2wfiuULDQazE7nOANPDKDzaXN6ptFIlO6mGpYU8WBbhY9QMZqicyIMA\nm6sKJ7JQSUl4O9Ali45Ns5GidaaOa3XHPJWi533m7bdDDNhYhdp1LUFBxLCP\nJIDYU/Bzpt6dknRHZuM4T3JdvkvAzwl5uLF08xea52o2M977tff2rG1/eBe1\nJLrE\r\n=n7Wi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCdHmk53EMyKyHjOrK/hTx/WK49op+2dl4VBQFNMAy8IAIhAOyYlFAGuZzsgrzil1qDo7Cc6fJUKJpgzXuIOLfKHFMC"}],"size":2660,"noattachment":false,"key":"/bulk-write-stream/-/bulk-write-stream-2.0.0.tgz"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bulk-write-stream_2.0.0_1549275104711_0.6666052075062137"},"_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":1549275104838,"_cnpm_publish_time":1549275104838,"dist-tags":{"latest":"2.0.1"}}