{"_id":"data-queue","_rev":"4652665","name":"data-queue","description":"Queue and get data","dist-tags":{"latest":"0.0.3"},"maintainers":[{"name":"mkg20001","email":""}],"time":{"modified":"2026-04-10T20:48:12.000Z","created":"2017-08-11T16:20:57.073Z","0.0.3":"2017-11-14T11:10:22.072Z","0.0.2":"2017-08-11T16:36:55.764Z","0.0.1":"2017-08-11T16:20:57.073Z"},"users":{},"author":{"name":"Maciej Krüger","email":"mkg20001@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/mkg20001/data-queue.git"},"versions":{"0.0.3":{"name":"data-queue","version":"0.0.3","description":"Queue and get data","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["queue","data","buffer","async"],"author":{"name":"Maciej Krüger","email":"mkg20001@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/mkg20001/data-queue.git"},"bugs":{"url":"https://github.com/mkg20001/data-queue/issues"},"homepage":"https://github.com/mkg20001/data-queue#readme","gitHead":"d827168c59032bce48989d6b9341013d00cc71ec","_id":"data-queue@0.0.3","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"mkg20001","email":"mkg20001@gmail.com"},"dist":{"shasum":"47ab5b634d4a3bbf7bb4ab625a4175b8cf9d44b1","size":1046,"noattachment":false,"key":"/data-queue/-/data-queue-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/data-queue/download/data-queue-0.0.3.tgz"},"maintainers":[{"name":"mkg20001","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/data-queue-0.0.3.tgz_1510657821216_0.6290881680324674"},"directories":{},"_cnpmcore_publish_time":"2021-12-21T01:36:41.776Z","publish_time":1510657822072,"_cnpm_publish_time":1510657822072},"0.0.2":{"name":"data-queue","version":"0.0.2","description":"Queue and get data","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["queue","data","buffer","async"],"author":{"name":"Maciej Krüger","email":"mkg20001@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/mkg20001/data-queue.git"},"bugs":{"url":"https://github.com/mkg20001/data-queue/issues"},"homepage":"https://github.com/mkg20001/data-queue#readme","gitHead":"872d93d37b09b239788d36857594091d01bb07ce","_id":"data-queue@0.0.2","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"mkg20001","email":"mkg20001@gmail.com"},"dist":{"shasum":"47bbed5e63a281a1dac5086ae32708f200a8c721","size":1052,"noattachment":false,"key":"/data-queue/-/data-queue-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/data-queue/download/data-queue-0.0.2.tgz"},"maintainers":[{"name":"mkg20001","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/data-queue-0.0.2.tgz_1502469414812_0.6266754085663706"},"directories":{},"_cnpmcore_publish_time":"2021-12-21T01:36:40.897Z","publish_time":1502469415764,"_cnpm_publish_time":1502469415764},"0.0.1":{"name":"data-queue","version":"0.0.1","description":"Queue and get data","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["queue","data","buffer","async"],"author":{"name":"Maciej Krüger","email":"mkg20001@gmail.com"},"license":"MIT","_id":"data-queue@0.0.1","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"mkg20001","email":"mkg20001@gmail.com"},"dist":{"shasum":"e12c1f04dfd04dd3093ee644ed24e6b34425547e","size":906,"noattachment":false,"key":"/data-queue/-/data-queue-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/data-queue/download/data-queue-0.0.1.tgz"},"maintainers":[{"name":"mkg20001","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/data-queue-0.0.1.tgz_1502468456200_0.8573774003889412"},"directories":{},"_cnpmcore_publish_time":"2021-12-21T01:36:39.958Z","publish_time":1502468457073,"_cnpm_publish_time":1502468457073}},"readme":"# data-queue\nQueue and get data\n\n# Usage\n```js\nconst Queue = require(\"data-queue\")\n\nconst queue = Queue() //create without new\n\nqueue.get((err, data) => { //this will wait for .append()/.prepend() or .error() calls\n  console.log(data)\n  queue.get((err, data) => {\n    if (err) throw err //Throw the error\n  })\n})\n\nqueue.append(\"Hi there\")\n\nqueue.error(new Error(\"Something fatal happened\"))\n\nqueue.append(\"What's up?\") //This won't append the data. instead it will return the error\n\nconsole.log(queue.height()) //This gets the number of items in the queue\n```\n","_attachments":{},"homepage":"https://github.com/mkg20001/data-queue#readme","bugs":{"url":"https://github.com/mkg20001/data-queue/issues"},"license":"MIT"}