{"_id":"@derhuerst/redis-stream","_rev":"5-7af630657ed0c2cfba7d4c69d9b54653","name":"@derhuerst/redis-stream","dist-tags":{"latest":"2.0.1"},"versions":{"1.0.0":{"name":"@derhuerst/redis-stream","description":"Redis 5 Streams as readable & writable Node streams. Plus a CLI.","version":"1.0.0","main":"index.js","bin":{"read-from-redis-stream":"./cli-read.js","write-into-redis-stream":"./cli-write.js"},"keywords":["redis","stream","xadd","xread","readable","writable","cli"],"author":{"name":"Jannis R","email":"mail@jannisr.de"},"homepage":"https://github.com/derhuerst/redis-stream","repository":{"type":"git","url":"git+https://github.com/derhuerst/redis-stream.git"},"bugs":{"url":"https://github.com/derhuerst/redis-stream/issues"},"license":"ISC","engines":{"node":">=8"},"dependencies":{"mri":"^1.1.4","ndjson":"^1.5.0"},"devDependencies":{"redis":"^2.8.0","tap-min":"^1.2.2","tape":"^4.9.1"},"scripts":{"test":"env NODE_ENV=dev node test.js | tap-min"},"gitHead":"c664439f4aba997bd5fb3109da15e52554fae3fa","_id":"@derhuerst/redis-stream@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"derhuerst","email":"mail@jannisr.de"},"dist":{"integrity":"sha512-twg+x2pdT1GRr1V3hTcj3anQPu/jMtxhmgmb8K+dpQ/kj+AuuGE/mqIdhpfTWosd3/EtgAePgndFpC6HkNwjbA==","shasum":"e199ff33bfc1100fda8360cf2d2287a0691b8087","tarball":"https://registry.npmjs.org/@derhuerst/redis-stream/-/redis-stream-1.0.0.tgz","fileCount":9,"unpackedSize":10476,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc7PskCRA9TVsSAnZWagAA3TkP/1vGNDEMSthpsO4mAVpL\nFrE7mIV1o+vgnQWYTz7vEXPrvrjn3hXpc9cIatRYNPTsOiBKQAU0h+gny5MJ\nx4+QQ8uFqK7RUGRW/M1+LWlqwf35ZqFOGkPEY8AmLOG8oUsf5zMHChgJEFOS\nroAHJF9m2eBc/Cy8omE4M6ve+W2vg6HyTTRnqDkl6wYLJ+4P39QeC0jSQAjs\neDjxxXDwdTeqlpDbp8pTaIFLYrfwC04ykKwOg0iUTunQTgGsq7Xkn+inFhI9\nhcBWjU5eBXc1UYJ7+TTcA2y3c1rvSUke92oo1Lg9BBe4N7VyiMZ77fhSyGiN\nGuv7nKAk2pdHLtjNYNRR0PM69tKqpXwIX3S7tWy/1VZbNb3J/tJs/my+tS1Q\n9v+j1QB5xnOxyPNXs1SeaK/ZX2CH7KnOU0zEDCt5CcCrOorLkeuZMVUxttcs\ntZm2IswdEyMBaF1yaj0pScQw7AZkl9FTQbSJgXakYvWjcZh7/begsiDaRGb6\nxe9UIIatIcxNiJxdtr0qmgppbEmvQ0vkGNkc3apCWAf0eIWrk4j0Qhiff4/R\njRABWE+XlgJ+ucV7a5UgwGyWaPGv6ARpr5/PwsNnaJudIxRKlDJm5kXE5xkv\nojHo4nJVImxq6oR6QoN8GCmUMW4GoZZ0IgHUkfFiCQJ8Scx9+R6Jibpy44Ez\nepWT\r\n=aLPb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCfdaTX+wVJLDUf2I8MjkfiqrpZ0+8Srub0T8mkuofthAIgZyygG1zK5uUOYUTbYqX19UZzNGph/ss9jA7bs+LIspQ="}]},"maintainers":[{"name":"derhuerst","email":"mail@jannisr.de"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redis-stream_1.0.0_1559034659894_0.5422483373108002"},"_hasShrinkwrap":false},"1.1.0":{"name":"@derhuerst/redis-stream","description":"Redis 5 Streams as readable & writable Node streams. Plus a CLI.","version":"1.1.0","main":"index.js","types":"index.d.ts","bin":{"read-from-redis-stream":"./cli-read.js","write-into-redis-stream":"./cli-write.js"},"keywords":["redis","stream","xadd","xread","readable","writable","cli"],"author":{"name":"Jannis R","email":"mail@jannisr.de"},"homepage":"https://github.com/derhuerst/redis-stream","repository":{"type":"git","url":"git+https://github.com/derhuerst/redis-stream.git"},"bugs":{"url":"https://github.com/derhuerst/redis-stream/issues"},"license":"ISC","engines":{"node":">=8"},"dependencies":{"mri":"^1.1.4","ndjson":"^1.5.0"},"devDependencies":{"redis":"^2.8.0","tap-min":"^1.2.2","tape":"^4.9.1"},"scripts":{"test":"env NODE_ENV=dev node test.js | tap-min"},"gitHead":"9f102328269ae8ae4336bf59185867ac6dd66903","_id":"@derhuerst/redis-stream@1.1.0","_nodeVersion":"12.10.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-rTZ/xjOMJsCZWMkGoZ3Hc+MmpE2/xoUSK+B+SmKomm+JZN9jWF+SYDU73S4yBv4eZr5AVJA0YR0NMZ8xN+O7fg==","shasum":"026e74b139f32f1fd170b0640dabc2be98c65cf8","tarball":"https://registry.npmjs.org/@derhuerst/redis-stream/-/redis-stream-1.1.0.tgz","fileCount":10,"unpackedSize":10839,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdlKfLCRA9TVsSAnZWagAA0egP/1EseX06rkU3l241pbSK\nxWFtf0A4nff76e6LCJ/8DExSwVvlk3qgXJSRvq748Gb3e/S/rJ1OH2Oe9Mtq\n2xoZ7zc93/L0p9Qutq8DWz4u8FJ4TgjX4XhraPjpgrUBDwd6RZ0G0WPygnnI\n+AT6yflbD02AMngbYjPj51IO3AGD6g1YeRa5THHRP+HsPNvhp9+ULwc08Ni1\n32wvgpcue8vRUrm0yH1SteBlTxfH3m6HSmLCa15iCVSnLisVWKrAKfI0w7JU\nnyYEaq90TXu7npzTDmgVH+M/BJi4uhqfpXXSUZ9Zt60lZcReekjULrdVdaaT\n8gk8DpX+tLU2ryHB+c4d7TtaaGfOPdPXRRQKw+iXQOpXome+60uk1JnrqiWx\nB28veywLOJ2E/mjqR2EeKsruYIOjFPNwEioQJidm9+B7dVOfti3zt3p9Gwvq\ntahCl+UYJPB3DkhRwBdwzmpbaBsg5NH0NXJZv2m5G9cImCxEw3U+6FWb7SmQ\n2Rj29Qk4hAPv5UGZi1deWt7Hci52kXOxDMrGTWECNNwFVoW1vDmLFFywnQ/o\nw3IvGQuHtJarAjfXatCqQndbzAZIBc4zeGY5bsm6gZtrYd0lMhVcMSBmK3mY\nHB0Qpsn56uAcHYMWVK9uKLaLw0w1UcMVqOsdWr8qfbVmKsaLnV69WfyQrV3E\n2Do8\r\n=B8ZP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJB+ICzmUbw70f8hjwhC36taAMb7+20+jsvkLzxR/qCgIgY6fIDyyU3+9nWv4UAqnAzHl0qkW0Jr39nShHKjwrddo="}]},"maintainers":[{"name":"derhuerst","email":"mail@jannisr.de"}],"_npmUser":{"name":"derhuerst","email":"mail@jannisr.de"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redis-stream_1.1.0_1570023371179_0.681347695234485"},"_hasShrinkwrap":false},"1.1.1":{"name":"@derhuerst/redis-stream","description":"Redis 5 Streams as readable & writable Node streams. Plus a CLI.","version":"1.1.1","main":"index.js","types":"index.d.ts","bin":{"read-from-redis-stream":"cli-read.js","write-into-redis-stream":"cli-write.js"},"keywords":["redis","stream","xadd","xread","readable","writable","cli"],"author":{"name":"Jannis R","email":"mail@jannisr.de"},"homepage":"https://github.com/derhuerst/redis-stream","repository":{"type":"git","url":"git+https://github.com/derhuerst/redis-stream.git"},"bugs":{"url":"https://github.com/derhuerst/redis-stream/issues"},"license":"ISC","engines":{"node":">=8"},"dependencies":{"mri":"^1.1.4","ndjson":"^1.5.0"},"devDependencies":{"redis":"^3.0.2"},"scripts":{"test":"node test.js","prepublishOnly":"npm test"},"gitHead":"de6b3990811be610b67dd4b21a70b97f2f84a4d0","_id":"@derhuerst/redis-stream@1.1.1","_nodeVersion":"14.2.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-UuNErAcUFWQGHXWIEyrqcNFbT1iNd0DonU5ab0eYnkh7vvZn2+H3qfA3jTFJP2RqFrV7c3GxpCdkrSxBNrfORw==","shasum":"5ae4ea3a05e1d5b336302f20d2f47e1e58bf067b","tarball":"https://registry.npmjs.org/@derhuerst/redis-stream/-/redis-stream-1.1.1.tgz","fileCount":10,"unpackedSize":10920,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJewUa8CRA9TVsSAnZWagAAoa0P/REnnE310o7dUnkyUvT4\nd3lXP3g8PMyh6L+7R9r7OeVFChlZ0UxQVlSLxAT0XtQnrkTEbC+RjKBrrp9V\nu1P61qHwmzQ2eGQsFwCR1VUpzwRFIEQdQhdOr1oL/5O4oUhGqhx82EW1RE0a\neTfihU1lynr9ra85R6dGKTQKzoOyvOo03my7Ej1ZCVxap/spBTIWYNCZbgwv\n5A0cnNn/NeZa44V+kAb6wMvakx+/pHqju8OqSGgpAFaxSpfowUADOnB19/J5\n4sK1nGW/nbbjpSByT06Sl2AJQFBpT/vrq8846v/CCT953JGXPssAoV7r/Z8b\nwbQMwZi3sdhoyJrMUsr16OTQUI6TN0U/K5BIP68Jj/4aVMxvncYLyg8XmeQH\nX9A+bYQyaqDKoHapGlO/cFkxjg32mHG1tz6LniQGvupfaOoV4lzGkVDw4Drp\nKxBC6DqTlOA9chfiQbmsHjon6Ue3SOuodKlg3cXRnAmsDHqMxhcNnS1rLkjH\nUmhaDpanWHN4R8hagoQkI/r7sGLWX9n2C4hYrlTwvyOsw/LBvrjTExRomBQO\nhFUB56PTfVOvWKH+EOJrWVN7qbDI0Na3gc9mSprDiAhuEAa+iWqkcuD2cK/u\nC1G13MKfSzKORqY9ULQ1ulRWJq0sPuER8CpOr+LhtCHPR4g0rIqcWl6Q381t\ne8kZ\r\n=EZJD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGAWp8ypB630oGEQfzbhYnoaIGv1yn7zg1SDJzbm3W08AiBr1OSDr+JGOYFcWqWsS9Z7Y+dZ5xP25tSKEbdvhowWag=="}]},"maintainers":[{"name":"derhuerst","email":"mail@jannisr.de"}],"_npmUser":{"name":"derhuerst","email":"mail@jannisr.de"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redis-stream_1.1.1_1589724860208_0.13869779289007056"},"_hasShrinkwrap":false},"2.0.0":{"name":"@derhuerst/redis-stream","description":"Redis 5 Streams as readable & writable Node streams. Plus a CLI.","version":"2.0.0","main":"index.js","types":"index.d.ts","bin":{"read-from-redis-stream":"cli-read.js","write-into-redis-stream":"cli-write.js"},"keywords":["redis","stream","xadd","xread","readable","writable","cli"],"author":{"name":"Jannis R","email":"mail@jannisr.de"},"homepage":"https://github.com/derhuerst/redis-stream","repository":{"type":"git","url":"git+https://github.com/derhuerst/redis-stream.git"},"bugs":{"url":"https://github.com/derhuerst/redis-stream/issues"},"license":"(Apache-2.0 AND Prosperity-3.0.0)","funding":[{"type":"License Zero","url":"https://licensezero.com/offers/dc2ee53d-4ef4-47b7-a48b-ffb42377620b"},{"type":"github","url":"https://github.com/sponsors/derhuerst"},{"type":"patreon","url":"https://patreon.com/derhuerst"}],"engines":{"node":">=10"},"dependencies":{"mri":"^1.1.4","ndjson":"^1.5.0"},"devDependencies":{"redis":"^3.0.2"},"scripts":{"test":"node test.js","prepublishOnly":"npm test"},"gitHead":"bac7d4618750ea074b6411ca540341ccd1da9152","_id":"@derhuerst/redis-stream@2.0.0","_nodeVersion":"14.2.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-hP2SGfP+QNDNw9EcRFrJLUpA/aVstscaLhPIDAm3deSDitU189ywIP4NBhAEdavCvZQPEN+HJjFFhhzQ4V4hYA==","shasum":"121ca36c06df615f2dff4c76a646233e8d6cc2be","tarball":"https://registry.npmjs.org/@derhuerst/redis-stream/-/redis-stream-2.0.0.tgz","fileCount":12,"unpackedSize":25906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJewUjmCRA9TVsSAnZWagAATA4P/1dL9GqPb0hK/gjziGW/\nkiAxbJdFgeqL3OSyfqBfuN3qpwh1yU45booQ9yDKd5JosLBE3YPLmKouVL4M\neUDwlGlY+8Y32gSfW19Yv/YGN+JFrhvSQ+018LdMrSXhJ/8gMtse8Qkzcv6p\nA95dKYxJhlCO/zy+C2UQRECuvViTk424stHCKSnVvTC+iwS5w2jWHb2kYwZo\nxv4GC2E8NodlOoLu+TyTO8/KIYFnUiju6cc1WQQa2CodKSdNaAi7g6CeE66Z\ndav7BaSl/6n8v5dS2kdixJoOOFeCZUDPl+JIyjitcPX29i3ByLI4kQc7//R0\nUpWGOS6zPJoMqT4CYIlSw1WwGJBbTAQ2XWY8stFdsQEvx9vE0MBcizw/Cw7F\n3OyALqkCuIGV8BXnGc/cfFQNxBDhtaLgbSCEM/25vuMaTbNRgC/LWUYK4aNa\nuHhKer4+OQRli6k2J6iyPvBRIPRidxd2HjAxdQ8Mqd0fGi7p0Lsyjgjh/dFk\n6dVmk/xKg2nVjW0SEOYAO4k6kDH2+tpFPio8mVD7KIEbFiSNmJr9ZPxH2g8j\nVLgm1uWli5fTQqexQN3meDVinlzCoz6AuF1TYvELovdBj/JWM+EAVAb2RpBl\n8ATuexI7nQloF62PeK3bKJuAsYDmJkG2jKlZ2oD2FKIc7NnFKSnvz7R04b45\ngmUn\r\n=nsWE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCawl211vNBtPds3R9O/VOmLpxsnNyczS9nmK37rOfFVQIgdbzOw7DWv7q1aQWQjy4fLBRM7bSpyG8klLJUW2PDEbQ="}]},"maintainers":[{"name":"derhuerst","email":"mail@jannisr.de"}],"_npmUser":{"name":"derhuerst","email":"mail@jannisr.de"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redis-stream_2.0.0_1589725414460_0.9288675104468183"},"_hasShrinkwrap":false},"2.0.1":{"name":"@derhuerst/redis-stream","description":"Redis 5 Streams as readable & writable Node streams. Plus a CLI.","version":"2.0.1","main":"index.js","types":"index.d.ts","bin":{"read-from-redis-stream":"cli-read.js","write-into-redis-stream":"cli-write.js"},"keywords":["redis","stream","xadd","xread","readable","writable","cli"],"author":{"name":"Jannis R","email":"mail@jannisr.de"},"homepage":"https://github.com/derhuerst/redis-stream","repository":{"type":"git","url":"git+https://github.com/derhuerst/redis-stream.git"},"bugs":{"url":"https://github.com/derhuerst/redis-stream/issues"},"license":"(Apache-2.0 AND Prosperity-3.0.0)","funding":[{"type":"License Zero","url":"https://licensezero.com/offers/dc2ee53d-4ef4-47b7-a48b-ffb42377620b"},{"type":"github","url":"https://github.com/sponsors/derhuerst"},{"type":"patreon","url":"https://patreon.com/derhuerst"}],"engines":{"node":">=10"},"dependencies":{"mri":"^1.1.4","ndjson":"^1.5.0"},"devDependencies":{"redis":"^3.0.2"},"scripts":{"test":"node test.js","prepublishOnly":"npm test"},"gitHead":"1a7e321747f55117b63e8d72de2bb3094d84a85f","_id":"@derhuerst/redis-stream@2.0.1","_nodeVersion":"14.2.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-k1v4BUj/qb+vbGOX9c4+TFb1tjRwuVNzfrgJZ3Onp3j06tB7WgdNQElH+SqgCoFwGdocsLO+kjvb0zgCJrx5uQ==","shasum":"f7d920686771e23c2a065f7934a9e4996a61f55e","tarball":"https://registry.npmjs.org/@derhuerst/redis-stream/-/redis-stream-2.0.1.tgz","fileCount":12,"unpackedSize":25924,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2P36CRA9TVsSAnZWagAA3lUP/i/D90U5gAowOUl7Iu2Q\n/mnWQL0j7Z2X4+73aNjg6JQa8nCBuNVGVAlMvscuHDrP4ht9XpK0TaydrSW1\ns4sgDeBoS8gZDXk90oPfyo71MRbWiuh5u4PKpF/0yv7/eG5yvE7F7ZJU0JN8\nn47qVNIQk9zhYKen+Ix7D9RXDuSP7L6UXdBAzMMbEOkrlLM462lHTiXdHNRZ\nlm1Mm+H7yLgyOMZBunabQ2TbPjRYHxNPY9tUmp9QLhHwOSoGpIsblLIRVGdi\nsD1NswFv9i81Nujz30jwq8XjxxwLjAeWK7YFSDPoe/Ynmbb236KMifp/VYVu\n1j4AD2acX+oozSS2pXabrrCJZ8waKZpdUTPc3+XK6GAWoZMmVga0h0HmCpdk\ntEGYrV9PF8GesSwp+PL3B4RgPBrn5Qhqe9vjum8zQkH0wAIdHPgM3Q1gAEAc\n2xUQTlfctdje4PgXo+chBQVzOhP6cFfhQHHYkL97jy8d1PyEO08b4hx1fksm\n5VL7vW4Vfeq0TskNCDrvupOyReZOoMDpUs6c459IMYl18BEie9vsMeYdpkP1\nqO+gmJMzsFBB7it/Yb02XbHu4cOwdnDejYd8K2oeQU2SZnEtJAFOE7/SwcYB\nVV57yQTquorNbDqylkrt4gRZvCvyX3TkQL01xlpaSjHWv8km2T39frLT5IM0\nYild\r\n=N9mq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGYbMnW7WnwyawBosceMnMZzNtx5x4XfsuWArUIWeAHhAiEA2lsCjO5p+vK5AMe/9wKszZjmAy9icILlbGPplLXFj4o="}]},"maintainers":[{"name":"derhuerst","email":"mail@jannisr.de"}],"_npmUser":{"name":"derhuerst","email":"mail@jannisr.de"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redis-stream_2.0.1_1591279098452_0.9567052091678947"},"_hasShrinkwrap":false}},"time":{"created":"2019-05-28T09:10:59.867Z","1.0.0":"2019-05-28T09:11:00.048Z","modified":"2022-04-05T03:48:37.119Z","1.1.0":"2019-10-02T13:36:11.369Z","1.1.1":"2020-05-17T14:14:20.324Z","2.0.0":"2020-05-17T14:23:34.631Z","2.0.1":"2020-06-04T13:58:18.568Z"},"maintainers":[{"name":"derhuerst","email":"mail@jannisr.de"}],"description":"Redis 5 Streams as readable & writable Node streams. Plus a CLI.","homepage":"https://github.com/derhuerst/redis-stream","keywords":["redis","stream","xadd","xread","readable","writable","cli"],"repository":{"type":"git","url":"git+https://github.com/derhuerst/redis-stream.git"},"author":{"name":"Jannis R","email":"mail@jannisr.de"},"bugs":{"url":"https://github.com/derhuerst/redis-stream/issues"},"license":"(Apache-2.0 AND Prosperity-3.0.0)","readme":"# redis-stream\n\n**[Redis 5 Streams](https://redis.io/topics/streams-intro) as [readable & writable Node streams](https://nodejs.org/api/stream.html).** Plus a command line interface.\n\n[![npm version](https://img.shields.io/npm/v/@derhuerst/redis-stream.svg)](https://www.npmjs.com/package/@derhuerst/redis-stream)\n[![build status](https://api.travis-ci.org/derhuerst/redis-stream.svg?branch=master)](https://travis-ci.org/derhuerst/redis-stream)\n[![Prosperity/Apache license](https://img.shields.io/static/v1?label=license&message=Prosperity%2FApache&color=0997E8)](#license)\n![minimum Node.js version](https://img.shields.io/node/v/@derhuerst/redis-stream.svg)\n[![chat with me on Gitter](https://img.shields.io/badge/chat%20with%20me-on%20gitter-512e92.svg)](https://gitter.im/derhuerst)\n[![support me via GitHub Sponsors](https://img.shields.io/badge/support%20me-donate-fa7664.svg)](https://github.com/sponsors/derhuerst)\n\n\n## Installation\n\n```shell\nnpm install @derhuerst/redis-stream\n```\n\n\n## Command line usage\n\n```\nUsage:\n    write-into-redis-stream <stream-name>\nExamples:\n    echo '{\"user\": \"jane\", \"text\": \"hey!\"}' | write-into-redis-stream chat-msgs\n```\n\n```\nUsage:\n    read-from-redis-stream <stream-name> [--history] [--live [--waitTimoout <ms>]] [--limit <n>]\nOptions:\n\t--live             Wait for newly added items? Default: true\n\t--waitTimeout  -t  How long to wait for newly added items. Default: Infinity\n\t--history          Read all past items from the stream? Default: false\n\t--limit        -l  Maximum number of items to read. Default: Infinity\nExamples:\n    read-from-redis-stream chat-msgs --live --limit 1000\n```\n\n\n## Usage with JavaScript\n\n### Writing to a Redis Stream\n\n```js\nconst {createClient} = require('redis')\nconst createWriter = require('@derhuerst/redis-stream/writer')\n\nconst redis = createClient()\nconst writer = createWriter(redis, 'some-stream-name')\nwriter.once('finish', () => redis.quit())\nwriter.on('error', console.error)\n\nwriter.write({foo: 'bar'})\nwriter.end({hey: 'there!'})\n```\n\n### Reading from a Redis Stream\n\n```js\nconst {createClient} = require('redis')\nconst createReader = require('@derhuerst/redis-stream/reader')\n\nconst redis = createClient()\nconst reader = createReader(redis, 'some-stream-name')\nreader.on('data', console.log)\nreader.on('error', console.error)\n```\n\n\n## API\n\n### `createWriter(redis, streamName)`\n\nReturns a [readable stream](https://nodejs.org/api/stream.html#stream_writable_streams) in [object mode](https://nodejs.org/api/stream.html#stream_object_mode).\n\n### `createReader(redis, streamName, opt = {})`\n\nReturns a [readable stream](https://nodejs.org/api/stream.html#stream_readable_streams) in [object mode](https://nodejs.org/api/stream.html#stream_object_mode). `opt` may be an object with the following entries:\n\n- `live`: Wait for newly added items? Default: `true`\n- `waitTimeout`: How long to wait for newly added items. Default: `Infinity`\n- `history`: Read all past items from the stream? Default: `false`\n- `limit`: Maximum number of items to read. Default: `Infinity`\n\n\n## License\n\nThis project is dual-licensed: **My contributions are licensed under the [*Prosperity Public License*](https://prosperitylicense.com), [contributions of other people](https://github.com/derhuerst/redis-stream/graphs/contributors) are licensed as [Apache 2.0](https://apache.org/licenses/LICENSE-2.0)**.\n\n> This license allows you to use and share this software for noncommercial purposes for free and to try this software for commercial purposes for thirty days.\n\n> Personal use for research, experiment, and testing for the benefit of public knowledge, personal study, private entertainment, hobby projects, amateur pursuits, or religious observance, without any anticipated commercial application, doesn’t count as use for a commercial purpose.\n\n[Buy a commercial license](https://licensezero.com/offers/dc2ee53d-4ef4-47b7-a48b-ffb42377620b) or read more about [why I sell private licenses for my projects](https://gist.github.com/derhuerst/0ef31ee82b6300d2cafd03d10dd522f7).\n\n\n## Contributing\n\nIf you have a question or need support using `redis-stream`, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to [the issues page](https://github.com/derhuerst/redis-stream/issues).\n\nBy contributing, you agree to release your modifications under the [Apache 2.0 license](LICENSE-APACHE).\n","readmeFilename":"readme.md"}