{"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":{"integrity":"sha512-xOKWSdAgrR99+XsFl/kZxhJQXwmU2xc9OAi+pcL3eZqgvYPfNUPCWkb5ckbIi19MSJW1F6b1jbaeEr5R3FYzTA==","shasum":"e12c1f04dfd04dd3093ee644ed24e6b34425547e","tarball":"http://registry-npm.ywwl.com/data-queue/download/data-queue-0.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDsOAKntf101S6OxH7jBHRZt8+00JBNjGZ3hIlCjWxC0AiAgdCu57Mj+ghn/g79c7rpiPjg6SxjrUP/2Alw35FXDlg=="}],"size":906,"noattachment":false,"key":"/data-queue/-/data-queue-0.0.1.tgz"},"maintainers":[{"name":"mkg20001","email":"mkg20001@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/data-queue-0.0.1.tgz_1502468456200_0.8573774003889412"},"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":1502468457073,"_cnpm_publish_time":1502468457073,"dist-tags":{"latest":"0.0.3"}}