{"_id":"@aetherwave/timed-queue","_rev":"3-e7ba3241cb5a13c138bcd7f4167868ef","name":"@aetherwave/timed-queue","description":"Get objects only after timeout, sorted by timeout (longest expiration first).","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@aetherwave/timed-queue","version":"1.0.0","description":"Get objects only after timeout, sorted by timeout (longest expiration first).","main":"index.js","scripts":{"test":"istanbul cover _mocha --report html --dir ./report/coverage"},"repository":{"type":"git","url":"git+https://github.com/Aetherwave/timed-queue.git"},"keywords":["queue","timeout","timed"],"author":{"name":"Thomas Schorn"},"license":"ISC","bugs":{"url":"https://github.com/Aetherwave/timed-queue/issues"},"homepage":"https://github.com/Aetherwave/timed-queue#readme","devDependencies":{"chai":"^3.3.0","istanbul":"^0.3.21","mocha":"^2.3.3"},"dependencies":{"lodash":"^3.10.1","sinon":"^1.17.1"},"gitHead":"a2c47a0c52fa98a20e1c9a2762b66d998021bb36","_id":"@aetherwave/timed-queue@1.0.0","_shasum":"ba8b403b689ac8f54971b8e7752cc1641b276c4a","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"aetherwave","email":"support@aetherwave.at"},"dist":{"shasum":"ba8b403b689ac8f54971b8e7752cc1641b276c4a","tarball":"https://registry.npmjs.org/@aetherwave/timed-queue/-/timed-queue-1.0.0.tgz","integrity":"sha512-XBwhAQzNqlKB7OexulK7iIDJioxQmw9zERrxjzdwuxAMgbVgykiZbbjnw42qM4hwRtuhc7uqvLeKL5MDx2g2XQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDbuq7NeAaKXd5Yr+bR59nOQkgbYxiKAPS7TP/9F4oelQIgQUmDlwIYy5lnCxVkevYVpjOgfOwyDgH7nw477l4uF/M="}]},"maintainers":[{"name":"aetherwave","email":"support@aetherwave.at"}]}},"readme":"# Timed Queue\n\n[![Build Status](https://travis-ci.org/Aetherwave/timed-queue.svg)](https://travis-ci.org/Aetherwave/timed-queue) [![Dependency Status](https://david-dm.org/Aetherwave/timed-queue.svg)](https://david-dm.org/Aetherwave/timed-queue)\n\nGet objects only after timeout, sorted by timeout (longest expiration first).\n\n## Usage\n\n    let queue = new TimedQueue();\n    queue.enqueue(999, 'Hello World');\n\n    console.log(queue.dequeue()); // -> null\n\n    setTimeout(function () {\n      console.log(queue.dequeue()); // -> Hello World\n    }, 1000);\n\n### TimedQueue#enqueue(timeout, obj)\n\nEnqueues object with timeout\n\n### TimedQueue#dequeue()\n\n- If there is one or more item with timeout lower than the current timestamp, this object gets dequeued\n- Else `null` is going to be returned\n\n### TimedQueue#length\n\nReturns length of the queue\n\n## Test\n\n**Run tests**\n\n    $ npm test\n","maintainers":[{"name":"aetherwave","email":"support@aetherwave.at"}],"time":{"modified":"2022-06-12T14:20:16.397Z","created":"2015-09-30T15:26:58.834Z","1.0.0":"2015-09-30T15:26:58.834Z"},"homepage":"https://github.com/Aetherwave/timed-queue#readme","keywords":["queue","timeout","timed"],"repository":{"type":"git","url":"git+https://github.com/Aetherwave/timed-queue.git"},"author":{"name":"Thomas Schorn"},"bugs":{"url":"https://github.com/Aetherwave/timed-queue/issues"},"license":"ISC","readmeFilename":"README.md"}