{"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":{"integrity":"sha512-XWOLjgHtpDasHfwM8oO4df1JoZwa7/OwTsXDzh4rUTo+9CowzeOFBZz43w+H14h1fyq+xl28tVIBrdjcjj4Gug==","shasum":"085bdc65caf19ceece4ff365fdb951ef0c6e3db8","tarball":"http://registry-npm.ywwl.com/bulk-write-stream/download/bulk-write-stream-2.0.1.tgz","fileCount":6,"unpackedSize":6716,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdwoctCRA9TVsSAnZWagAAs8cP/jU8oDDG47kGdly0uqrI\nWq5MAGrLee1GOix79GZ4AujcsJFBoLIZH6dIOooxMusSiieoSVsioQLGNbjP\nsUzEQrkqgYhYxQPu6xfh6O/U2Hlj/6XG7HJ9wHKi74zO/gWGWrSEuHLj7RIX\nRQWolMqtYXv1WIWO2sXVUKN7nHDe2tw8SnAMsyNRf6qzFd6Am5+mXlL8c+CU\nGx5QKKerCGqGmlk5SzEJB1GPj9IiP7gdRnSzDnC/Ycyi04Zx7Z3Xr9Hnl6yM\nH2ex8DAVp8zQCXdLvUNwKmu+lvFKERhYJeevlra3iEeNP/KdwuPF2C7vMOy0\nPtwf7yCjxYYgs9BV945J+V72FkPg+9rRTz7dfeKRHq4IoXIltibyxkjIv6TN\nC2ZnsXgjvjt2NC924np4Ioxa2raTLXFlAgToIcpk1COo/Ir6w1Nt1C9YkHAl\nkeoKAnT4a5yfJ7Rvaew7n+RgLh60/aYNMdtNA2dX14k6ReWqTsWqCA16WmM+\njdRTluDfqnyDEvWGys30Whl76ymuqKD9SrvRJ1BOGNhrqJrGqIIxLMvtNnDG\nyEUX38lJsPtKxrPfiJfrJ5RDGRGhKVJdaINevugJF5fZvGzLPAUOYjdrsk5x\nLKnDVysyoKK2EorxzeVzWqHOi3mY6QFRgoc2XFmIQWxO+/dpj4UR7KzgldTI\nuDZh\r\n=BnxI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFhAiYI3Ec1vvMN6y7vfJGYWVnAXhs7zQNKi1cxZOdWwAiEAqgiuLV1IfUhk8rX6PMqbzi5sdW2JXUu8b/ujHPNbqjc="}],"size":2641,"noattachment":false,"key":"/bulk-write-stream/-/bulk-write-stream-2.0.1.tgz"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_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,"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":1573029677398,"_cnpm_publish_time":1573029677398,"dist-tags":{"latest":"2.0.1"}}