{"_id":"@cotton-tail-tech/simple-redis-stream","_rev":"2-47a5d7010c164642b975265cd04de118","name":"@cotton-tail-tech/simple-redis-stream","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@cotton-tail-tech/simple-redis-stream","version":"1.0.0","description":"Simple Redis pub-sub module with topic subscription","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Honex"},"license":"The Unlicense","dependencies":{"ioredis":"^5.3.2"},"_id":"@cotton-tail-tech/simple-redis-stream@1.0.0","gitHead":"242a570c706862df9dea7e048e86ab1f78b86a61","_nodeVersion":"21.7.0","_npmVersion":"10.5.0","dist":{"integrity":"sha512-5aPffFaia1dNliAkPw77UPx2yDqnnPyNr77dEp9ThY6Z0hGeXVaX80t1e4Mi/bEVpsnbZanc8voS3C6ms7zOPQ==","shasum":"5bc2a36410d791e945795746fd3f50d303591bba","tarball":"https://registry.npmjs.org/@cotton-tail-tech/simple-redis-stream/-/simple-redis-stream-1.0.0.tgz","fileCount":7,"unpackedSize":10840,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDl6aYDR0oXQCraqok8pJbafhOdXB/DBrlmFxkFrHjOuAIgP9mJ9YUiI0sc4LhA+vhl+oq7+5l5S+CaVMKy6z6fivc="}]},"_npmUser":{"name":"domiibunni","email":"domi.jadowska@gmail.com"},"directories":{},"maintainers":[{"name":"domiibunni","email":"domi.jadowska@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simple-redis-stream_1.0.0_1709930737928_0.42347942536637473"},"_hasShrinkwrap":false},"1.0.1":{"name":"@cotton-tail-tech/simple-redis-stream","version":"1.0.1","description":"Simple Redis pub-sub module with topic subscription","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Honex"},"license":"The Unlicense","dependencies":{"ioredis":"^5.3.2"},"_id":"@cotton-tail-tech/simple-redis-stream@1.0.1","gitHead":"5750f033af64014f1da8d261f5aec884510b3179","_nodeVersion":"21.7.0","_npmVersion":"10.5.0","dist":{"integrity":"sha512-kgCHCyV4WuyMOKN3bJttofCzG+7YMBu6ZX0jg16z/GPhLH7N4nb9g/XWRzkx+ZZlxzHF/C6Pb/3z5QKy/At/6g==","shasum":"b67e38c6787b482e6ee45e514948e2e8f46bcfe7","tarball":"https://registry.npmjs.org/@cotton-tail-tech/simple-redis-stream/-/simple-redis-stream-1.0.1.tgz","fileCount":7,"unpackedSize":5683,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDmQELyjRwcPdaGRH5GhwFrA97nODjQ7ZEcbJ2IAIOtWgIgOeGdqpM/D0zox8H/KtpDbECS/pTkCbveUOq4a/76nq8="}]},"_npmUser":{"name":"domiibunni","email":"domi.jadowska@gmail.com"},"directories":{},"maintainers":[{"name":"domiibunni","email":"domi.jadowska@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simple-redis-stream_1.0.1_1709931339194_0.7668133539516087"},"_hasShrinkwrap":false},"1.0.2":{"name":"@cotton-tail-tech/simple-redis-stream","version":"1.0.2","description":"Simple Redis pub-sub module with topic subscription","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Honex"},"license":"The Unlicense","homepage":"https://gitlab.com/cottontailtech/simple-redis-stream","bugs":{"url":"https://gitlab.com/cottontailtech/simple-redis-stream/-/issues"},"dependencies":{"ioredis":"^5.3.2"},"_id":"@cotton-tail-tech/simple-redis-stream@1.0.2","gitHead":"3a5816137e361e26085e48108ea22998beee6492","_nodeVersion":"21.7.0","_npmVersion":"10.5.0","dist":{"integrity":"sha512-xb7MiBUQpQ0hNvCFXxdcRr0mfH1KJr2ZBdOJ85o/Wqq0SqrJeM8jcGJ6h6ge+30ToDt1lyuepsBfZsWfN2oYEQ==","shasum":"b8785384ae0dbd014852a045f6991245a19ccd61","tarball":"https://registry.npmjs.org/@cotton-tail-tech/simple-redis-stream/-/simple-redis-stream-1.0.2.tgz","fileCount":7,"unpackedSize":5847,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCYKmCW1ANLDMl3e66PBixb8jmA3ZtZi81j6WsPswselgIgSac8469vhbAjYrE0pJBN+20fdP0CDCETdbEoNA+Ibmg="}]},"_npmUser":{"name":"domiibunni","email":"domi.jadowska@gmail.com"},"directories":{},"maintainers":[{"name":"domiibunni","email":"domi.jadowska@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simple-redis-stream_1.0.2_1709931884762_0.46620572644138747"},"_hasShrinkwrap":false}},"time":{"created":"2024-03-08T20:45:37.801Z","1.0.0":"2024-03-08T20:45:38.086Z","modified":"2024-03-08T21:04:45.404Z","1.0.1":"2024-03-08T20:55:39.337Z","1.0.2":"2024-03-08T21:04:44.960Z"},"maintainers":[{"name":"domiibunni","email":"domi.jadowska@gmail.com"}],"description":"Simple Redis pub-sub module with topic subscription","author":{"name":"Honex"},"license":"The Unlicense","readme":"# Simple Redis Stream\n\n## Installation\n\nTo install the necessary dependencies, execute the following command:\n\n```bash\nnpm i @cotton-tail-tech/simple-redis-stream\n```\n\n## Usage\n\n### Import\n\nImport the module into your Node.js application:\n\n```javascript\nconst srs = require(\"@cotton-tail-tech/simple-redis-stream\");\n```\n\n### Initialization\n\nInitialize the Redis connection with the following parameters:\n\n```javascript\nsrs.init({\n  host: \"localhost\",\n  port: 6379,\n});\n```\n\n### Subscribe to Events\n\nSubscribe to specific events by providing the event name and a callback function to handle incoming messages:\n\n```javascript\nsrs.subscribe(\"zendesk_api_create\", (message) => {\n  console.log(message);\n});\n```\n\n### Publish Events\n\nPublish events to the Redis stream with a designated event name and associated data:\n\n```javascript\nsrs.publish(\"zendesk_api_create\", { id: 1, name: \"test\" });\n```\n\nThis readme provides a concise overview of how to set up and utilize the Simple Redis Stream module for integrating Redis streams into your Node.js applications.","readmeFilename":"README.md","homepage":"https://gitlab.com/cottontailtech/simple-redis-stream","bugs":{"url":"https://gitlab.com/cottontailtech/simple-redis-stream/-/issues"}}