{"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":{"integrity":"sha512-6YOUFa/+lXklPO42RF4zIzzphG01Jp1eoWolzkQb6z5oVsSThLibZ63VmAze3KuIMTglFt551q8j0Zaswx5vGQ==","shasum":"47ab5b634d4a3bbf7bb4ab625a4175b8cf9d44b1","tarball":"http://registry-npm.ywwl.com/data-queue/download/data-queue-0.0.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAWKar8b7Z63lQAAuNcwUz7sxUCz6xfhxXWlQ7RThKdfAiEAuivuSivigUw3X+BUuikHCrmysgaHcNPk7nbpwwKLilU="}],"size":1046,"noattachment":false,"key":"/data-queue/-/data-queue-0.0.3.tgz"},"maintainers":[{"name":"mkg20001","email":"mkg20001@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/data-queue-0.0.3.tgz_1510657821216_0.6290881680324674"},"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":1510657822072,"_cnpm_publish_time":1510657822072,"dist-tags":{"latest":"0.0.3"}}