{"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":{"integrity":"sha512-MCaFAuhyZ9TzEa2BpEhCBgEiy8PIWlPAP1W1QhMMEp/EyJ5lLGVO5hFre+GhPo+wDuutnfQgSmXwq9PfnfavoQ==","shasum":"47bbed5e63a281a1dac5086ae32708f200a8c721","tarball":"http://registry-npm.ywwl.com/data-queue/download/data-queue-0.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGs08m9/migFR3JIGWT9v5f3NwDRj/wZZaK7lnIU+PLDAiBkBem2IUIUMrzHQx6JUUQrMa1KSUHoUhDwAdfKIkd6aw=="}],"size":1052,"noattachment":false,"key":"/data-queue/-/data-queue-0.0.2.tgz"},"maintainers":[{"name":"mkg20001","email":"mkg20001@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/data-queue-0.0.2.tgz_1502469414812_0.6266754085663706"},"directories":{},"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","publish_time":1502469415764,"_cnpm_publish_time":1502469415764,"dist-tags":{"latest":"0.0.3"}}