{"_id":"bulk-write-stream","_rev":"480420","name":"bulk-write-stream","description":"Writable stream that forwards everything in the highWaterMark buffer to a custom write function using the new writev api in streams","dist-tags":{"latest":"2.0.1"},"maintainers":[{"name":"mafintosh","email":""}],"time":{"modified":"2021-08-05T09:34:05.000Z","created":"2015-05-29T14:21:46.687Z","2.0.1":"2019-11-06T08:41:17.398Z","2.0.0":"2019-02-04T10:11:44.838Z","1.1.4":"2018-03-23T02:57:06.562Z","1.1.3":"2016-06-10T22:57:26.076Z","1.1.2":"2016-06-10T22:55:51.668Z","1.1.1":"2015-09-25T18:25:04.194Z","1.1.0":"2015-09-24T21:18:55.149Z","1.0.0":"2015-05-29T14:21:46.687Z"},"users":{},"author":{"name":"Mathias Buus","url":"@mafintosh"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/bulk-write-stream.git"},"versions":{"2.0.1":{"name":"bulk-write-stream","version":"2.0.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":{"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":"1fc07a891f4cedd1dc64038d7226dcc5ba3318fa","_id":"bulk-write-stream@2.0.1","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"shasum":"085bdc65caf19ceece4ff365fdb951ef0c6e3db8","size":2641,"noattachment":false,"key":"/bulk-write-stream/-/bulk-write-stream-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/bulk-write-stream/download/bulk-write-stream-2.0.1.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bulk-write-stream_2.0.1_1573029677246_0.6503378779623639"},"_hasShrinkwrap":false,"publish_time":1573029677398,"_cnpm_publish_time":1573029677398},"2.0.0":{"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":{"shasum":"c25ab587dfd43cd704cf48f0905290a2bc0dd36b","size":2660,"noattachment":false,"key":"/bulk-write-stream/-/bulk-write-stream-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/bulk-write-stream/download/bulk-write-stream-2.0.0.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bulk-write-stream_2.0.0_1549275104711_0.6666052075062137"},"_hasShrinkwrap":false,"publish_time":1549275104838,"_cnpm_publish_time":1549275104838},"1.1.4":{"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":{"shasum":"04b4bdaad61f5a813d8323547383020efffa7d7e","size":2681,"noattachment":false,"key":"/bulk-write-stream/-/bulk-write-stream-1.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/bulk-write-stream/download/bulk-write-stream-1.1.4.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bulk-write-stream_1.1.4_1521773826481_0.14872516777460731"},"_hasShrinkwrap":false,"publish_time":1521773826562,"_cnpm_publish_time":1521773826562},"1.1.3":{"name":"bulk-write-stream","version":"1.1.3","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.1","readable-stream":"^2.1.4"},"devDependencies":{"standard":"^7.1.2","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":"058d2dd2e862aa89faf31582b4baeec1bd4be7f1","_id":"bulk-write-stream@1.1.3","_shasum":"d29ca385fbd53f357aee5bd3d3028732b62ae275","_from":".","_npmVersion":"2.15.1","_nodeVersion":"4.4.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"d29ca385fbd53f357aee5bd3d3028732b62ae275","size":2734,"noattachment":false,"key":"/bulk-write-stream/-/bulk-write-stream-1.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/bulk-write-stream/download/bulk-write-stream-1.1.3.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/bulk-write-stream-1.1.3.tgz_1465599443623_0.3659534649923444"},"directories":{},"publish_time":1465599446076,"_cnpm_publish_time":1465599446076,"_hasShrinkwrap":false},"1.1.2":{"name":"bulk-write-stream","version":"1.1.2","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":"^2.1.4"},"devDependencies":{"standard":"^7.1.2","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":"17561fb5be0c3ed9b121fd52f28a04130ffb2be4","_id":"bulk-write-stream@1.1.2","_shasum":"cbbb0dddbe37dd92a07697a5fd06ff8829867535","_from":".","_npmVersion":"2.15.1","_nodeVersion":"4.4.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"cbbb0dddbe37dd92a07697a5fd06ff8829867535","size":2726,"noattachment":false,"key":"/bulk-write-stream/-/bulk-write-stream-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/bulk-write-stream/download/bulk-write-stream-1.1.2.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/bulk-write-stream-1.1.2.tgz_1465599349484_0.7057447035331279"},"directories":{},"publish_time":1465599351668,"_cnpm_publish_time":1465599351668,"_hasShrinkwrap":false},"1.1.1":{"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","size":2721,"noattachment":false,"key":"/bulk-write-stream/-/bulk-write-stream-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/bulk-write-stream/download/bulk-write-stream-1.1.1.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"directories":{},"publish_time":1443205504194,"_cnpm_publish_time":1443205504194,"_hasShrinkwrap":false},"1.1.0":{"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","size":2691,"noattachment":false,"key":"/bulk-write-stream/-/bulk-write-stream-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/bulk-write-stream/download/bulk-write-stream-1.1.0.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"directories":{},"publish_time":1443129535149,"_cnpm_publish_time":1443129535149,"_hasShrinkwrap":false},"1.0.0":{"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","size":2276,"noattachment":false,"key":"/bulk-write-stream/-/bulk-write-stream-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/bulk-write-stream/download/bulk-write-stream-1.0.0.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"directories":{},"publish_time":1432909306687,"_cnpm_publish_time":1432909306687,"_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","_attachments":{},"homepage":"https://github.com/mafintosh/bulk-write-stream","bugs":{"url":"https://github.com/mafintosh/bulk-write-stream/issues"},"license":"MIT"}