File: /home/imensosw/.npm/registry.npmjs.org/flush-write-stream/.cache.json
{"_id":"flush-write-stream","_rev":"5-7046196838f5f13d5c3752a693f142f5","name":"flush-write-stream","description":"A write stream constructor that supports a flush function that is called before finish is emitted","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"flush-write-stream","version":"1.0.0","description":"A write stream constructor that supports a flush function that is called before finish is emitted","main":"index.js","dependencies":{"readable-stream":"^2.0.4"},"devDependencies":{"tape":"^4.2.2"},"scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/flush-write-stream.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/flush-write-stream/issues"},"homepage":"https://github.com/mafintosh/flush-write-stream","gitHead":"50e81d8eeee8a9666c7d5105775a6c89b7ae9dfa","_id":"flush-write-stream@1.0.0","_shasum":"cc4fc24f4b4c973f80027f27cc095841639965a7","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"cc4fc24f4b4c973f80027f27cc095841639965a7","tarball":"https://registry.npmjs.org/flush-write-stream/-/flush-write-stream-1.0.0.tgz"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"directories":{}},"1.0.1":{"name":"flush-write-stream","version":"1.0.1","description":"A write stream constructor that supports a flush function that is called before finish is emitted","main":"index.js","dependencies":{"readable-stream":"^2.0.4"},"devDependencies":{"tape":"^4.2.2"},"scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/flush-write-stream.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/flush-write-stream/issues"},"homepage":"https://github.com/mafintosh/flush-write-stream","gitHead":"7f00179b7018083158fdf58c416aaa77ed2696c3","_id":"flush-write-stream@1.0.1","_shasum":"39dd8e6627109b5e833461d1b1eeb25edff3c4ba","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.6","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"39dd8e6627109b5e833461d1b1eeb25edff3c4ba","tarball":"https://registry.npmjs.org/flush-write-stream/-/flush-write-stream-1.0.1.tgz"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/flush-write-stream-1.0.1.tgz_1476614551011_0.6873086630366743"},"directories":{}},"1.0.2":{"name":"flush-write-stream","version":"1.0.2","description":"A write stream constructor that supports a flush function that is called before finish is emitted","main":"index.js","dependencies":{"inherits":"^2.0.1","readable-stream":"^2.0.4"},"devDependencies":{"tape":"^4.2.2"},"scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/flush-write-stream.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/flush-write-stream/issues"},"homepage":"https://github.com/mafintosh/flush-write-stream","gitHead":"d35a4071dacbcc60fc40d798fa58fc425cba3efc","_id":"flush-write-stream@1.0.2","_shasum":"c81b90d8746766f1a609a46809946c45dd8ae417","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.6","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"c81b90d8746766f1a609a46809946c45dd8ae417","tarball":"https://registry.npmjs.org/flush-write-stream/-/flush-write-stream-1.0.2.tgz"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/flush-write-stream-1.0.2.tgz_1476614807882_0.22224654001183808"},"directories":{}},"1.0.3":{"name":"flush-write-stream","version":"1.0.3","description":"A write stream constructor that supports a flush function that is called before finish is emitted","main":"index.js","dependencies":{"inherits":"^2.0.1","readable-stream":"^2.0.4"},"devDependencies":{"tape":"^4.2.2"},"scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/flush-write-stream.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/flush-write-stream/issues"},"homepage":"https://github.com/mafintosh/flush-write-stream","gitHead":"3a0c6e62c7c9a5c22abf49cd1a06c960487fa2c9","_id":"flush-write-stream@1.0.3","_npmVersion":"5.6.0","_nodeVersion":"9.7.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"integrity":"sha512-calZMC10u0FMUqoiunI2AiGIIUtUIvifNwkHhNupZH4cbNnW1Itkoh/Nf5HFYmDrwWPjrUxpkZT0KhuCq0jmGw==","shasum":"c5d586ef38af6097650b49bc41b55fabb19f35bd","tarball":"https://registry.npmjs.org/flush-write-stream/-/flush-write-stream-1.0.3.tgz","fileCount":7,"unpackedSize":6512},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/flush-write-stream_1.0.3_1521632961113_0.42985920051576776"}}},"readme":"# flush-write-stream\n\nA write stream constructor that supports a flush function that is called before `finish` is emitted\n\n```\nnpm install flush-write-stream\n```\n\n[](http://travis-ci.org/mafintosh/flush-write-stream)\n\n## Usage\n\n``` js\nvar writer = require('flush-write-stream')\n\nvar ws = writer(write, flush)\n\nws.on('finish', function () {\n console.log('finished')\n})\n\nws.write('hello')\nws.write('world')\nws.end()\n\nfunction write (data, enc, cb) {\n // i am your normal ._write method\n console.log('writing', data.toString())\n cb()\n}\n\nfunction flush (cb) {\n // i am called before finish is emitted\n setTimeout(cb, 1000) // wait 1 sec\n}\n```\n\nIf you run the above it will produce the following output\n\n```\nwriting hello\nwriting world\n(nothing happens for 1 sec)\nfinished\n```\n\n## API\n\n#### `var ws = writer([options], write, [flush])`\n\nCreate a new writable stream. Options are forwarded to the stream constructor.\n\n#### `var ws = writer.obj([options], write, [flush])`\n\nSame as the above except `objectMode` is set to `true` per default.\n\n## License\n\nMIT\n","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"time":{"modified":"2018-03-21T11:49:21.776Z","created":"2015-11-06T21:57:03.152Z","1.0.0":"2015-11-06T21:57:03.152Z","1.0.1":"2016-10-16T10:42:32.651Z","1.0.2":"2016-10-16T10:46:49.463Z","1.0.3":"2018-03-21T11:49:21.221Z"},"homepage":"https://github.com/mafintosh/flush-write-stream","repository":{"type":"git","url":"git+https://github.com/mafintosh/flush-write-stream.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"bugs":{"url":"https://github.com/mafintosh/flush-write-stream/issues"},"license":"MIT","readmeFilename":"README.md","users":{"bret":true},"_attachments":{},"_etag":"W/\"d7b91a7dbdd12f45b8074e8ce053fad8\"","_lastModified":"Sun, 27 May 2018 00:59:13 GMT","_cached":true}