{"_id":"then-queue","_rev":"17-192293263a0dfdb22b07a8e1709ca33a","name":"then-queue","description":"a simple asynchronous queue","dist-tags":{"latest":"1.3.0"},"versions":{"1.0.0":{"name":"then-queue","version":"1.0.0","description":"a simple asynchronous queue","main":"index.js","repository":{"type":"git","url":"git://github.com/nathan7/then-queue.git"},"keywords":["queue","async","promise"],"author":{"name":"Nathan Zadoks"},"license":"MIT","bugs":{"url":"https://github.com/nathan7/then-queue/issues"},"homepage":"https://github.com/nathan7/then-queue","dependencies":{"promise":"^3"},"_id":"then-queue@1.0.0","dist":{"shasum":"a411ed824d5ca89854cb88b0014a8edf30d81f1b","tarball":"https://registry.npmjs.org/then-queue/-/then-queue-1.0.0.tgz","integrity":"sha512-fHmC+SJqqok/oV4MSSFpyD+lZ3d4JdtU7J1Ha0NCzAZtWwAmiKOgcG3xZvdVCdhz8d1rzeNAomygE3BDO4o+Yw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSyGSPwvZheofSewdUMRbt5ExREhlDrt0C0VjY844zpgIgQ6zZZjjC+TJ1d6dwPR0nQHG+e4gFWyuwrJXTQ3FOQ/M="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"nathan7","email":"nathan@nathan7.eu"},"maintainers":[{"name":"nathan7","email":"nathan@nathan7.eu"}],"directories":{}},"1.1.0":{"name":"then-queue","version":"1.1.0","description":"a simple asynchronous queue","main":"index.js","repository":{"type":"git","url":"git://github.com/nathan7/then-queue.git"},"keywords":["queue","async","promise"],"author":{"name":"Nathan Zadoks"},"license":"MIT","bugs":{"url":"https://github.com/nathan7/then-queue/issues"},"homepage":"https://github.com/nathan7/then-queue","dependencies":{"promise":"^3"},"_id":"then-queue@1.1.0","dist":{"shasum":"75205ee91e6eb1fb93d1e9e466949997dcc78a94","tarball":"https://registry.npmjs.org/then-queue/-/then-queue-1.1.0.tgz","integrity":"sha512-D5OYJmOBHg6EYN28exPVS+86vuyTMa03SsT7JjmWWb4VLh0pBbL9vS9yOoGgSN9S1SnDNMq2BWBbcnCTZ43kyQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGKtzCTD5PS2lJvdGS28+T5rhGEaFYDscDkjEF+CD2DwAiBjTmy6CU6su25l4KUkhdj17zS3rPix0RRSvNBhTdyckw=="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"nathan7","email":"nathan@nathan7.eu"},"maintainers":[{"name":"nathan7","email":"nathan@nathan7.eu"}]},"1.1.1":{"name":"then-queue","version":"1.1.1","description":"a simple asynchronous queue","main":"index.js","repository":{"type":"git","url":"git://github.com/nathan7/then-queue.git"},"keywords":["queue","async","promise"],"author":{"name":"Nathan Zadoks"},"license":"MIT","bugs":{"url":"https://github.com/nathan7/then-queue/issues"},"homepage":"https://github.com/nathan7/then-queue","dependencies":{"promise":"^3"},"_id":"then-queue@1.1.1","dist":{"shasum":"678922d61c14320cd38199860270aecbefdb05c3","tarball":"https://registry.npmjs.org/then-queue/-/then-queue-1.1.1.tgz","integrity":"sha512-ZeIvLOrA6fAogYhe+gRwsEOlxXxw19moeLmM5Xn6FTNSMafDqIxVKDfVhziQ6wfYe5KEdUuPAFXTAxPYJFgYTA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFqhyCd2cCgIWMgIgvvyhRb87vLdW60rxCXzu+sFqHLHAiEA0XOvFREZGCn93IfHwuEBAIRb1Q1Ez7V7ZHQLGvq6Xiw="}]},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"nathan7","email":"nathan@nathan7.eu"},"maintainers":[{"name":"nathan7","email":"nathan@nathan7.eu"}]},"1.1.2":{"name":"then-queue","version":"1.1.2","description":"a simple asynchronous queue","main":"index.js","repository":{"type":"git","url":"git://github.com/nathan7/then-queue.git"},"keywords":["queue","async","promise"],"author":{"name":"Nathan Zadoks"},"license":"MIT","bugs":{"url":"https://github.com/nathan7/then-queue/issues"},"homepage":"https://github.com/nathan7/then-queue","dependencies":{"promise":"^3"},"_id":"then-queue@1.1.2","dist":{"shasum":"e0b00dc4f7956f000b9a16952397afcaf26b2aef","tarball":"https://registry.npmjs.org/then-queue/-/then-queue-1.1.2.tgz","integrity":"sha512-j4BrnYT7DEeXbmnk3Xn9oc4Oja1iWP7RL+h51yQVjcCrmGk162nI8Cn8lJP4bnJXKRTG/H31iXbsFkNahqu9CA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDHaMUdh1TgPvJ8UgKJIRs+4AsN5eB4VgA+jvsk/eNz0gIgByT/FSr25xycF9K0cp/RlxXaqlQTZA/PiRFAT7LGWv4="}]},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"nathan7","email":"nathan@nathan7.eu"},"maintainers":[{"name":"nathan7","email":"nathan@nathan7.eu"},{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}]},"1.1.3":{"name":"then-queue","version":"1.1.3","description":"a simple asynchronous queue","main":"index.js","repository":{"type":"git","url":"git://github.com/nathan7/then-queue.git"},"keywords":["queue","async","promise"],"author":{"name":"Nathan Zadoks"},"license":"MIT","bugs":{"url":"https://github.com/nathan7/then-queue/issues"},"homepage":"https://github.com/nathan7/then-queue","dependencies":{"promise":"^3"},"_id":"then-queue@1.1.3","dist":{"shasum":"5b780e0017fcfeea6c689352f2f4a5fd50d5d474","tarball":"https://registry.npmjs.org/then-queue/-/then-queue-1.1.3.tgz","integrity":"sha512-UbqZESn6Eo2v/XG9nbLZy949cVGkah0Q+AHEWAB+R3uThEuqs2fSvCtl/3TU2/Gg8VVVO1mCXoZPkoRwt7iCIg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7S/6kGkOdHxzEy48d0RLWsA3HBDahbYnhaEvFq9jYhgIgWRtvB37gev55rzbMSbEhrDstyYDl2oDSUR1oVI4P4M8="}]},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"nathan7","email":"nathan@nathan7.eu"},"maintainers":[{"name":"nathan7","email":"nathan@nathan7.eu"},{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}]},"1.2.0":{"name":"then-queue","version":"1.2.0","description":"a simple asynchronous queue","main":"index.js","repository":{"type":"git","url":"git://github.com/then/queue.git"},"keywords":["queue","async","promise"],"author":{"name":"Nathan Zadoks"},"license":"MIT","bugs":{"url":"https://github.com/then/queue/issues"},"homepage":"https://github.com/then/queue","dependencies":{"promise":"^5.0.0"},"devDependencies":{"testit":"~1.2.0"},"scripts":{"test":"node test"},"_id":"then-queue@1.2.0","dist":{"shasum":"050f9416aae52b22900e63d2371fbfd86327d0ed","tarball":"https://registry.npmjs.org/then-queue/-/then-queue-1.2.0.tgz","integrity":"sha512-hp2zfD0Q5oCwbewkvOaRdqp6YKvB2MGIyKDqeVnkxyZDvIRRsjJ/2tx5mmiFSIn2UHau7zsHqxDNmQj2uLL5kQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDREqgRk5MKQbLJs1UBEJFw//V+CHb5zHUkeZsY/L9fPAIgHw/8K28S8+lTM0u2UpnHszel+b0Hm/pMTN932SuMSEM="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"nathan7","email":"nathan@nathan7.eu"},{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}]},"1.1.4":{"name":"then-queue","version":"1.1.4","description":"a simple asynchronous queue","main":"index.js","repository":{"type":"git","url":"git://github.com/nathan7/then-queue.git"},"keywords":["queue","async","promise"],"author":{"name":"Nathan Zadoks"},"license":"MIT","bugs":{"url":"https://github.com/nathan7/then-queue/issues"},"homepage":"https://github.com/nathan7/then-queue","dependencies":{"promise":">= 3 <6"},"_id":"then-queue@1.1.4","dist":{"shasum":"bf57763f02aeda68e562a038aa25d53b19b3bef9","tarball":"https://registry.npmjs.org/then-queue/-/then-queue-1.1.4.tgz","integrity":"sha512-CSO5+tDPH86xKQofmTw7yOmplEUR4qeG2BeKMytOCiigVQwIC0Iu1zr/XbflW7TXORNhfDuBCeqTq1FQ9GNBvA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDh9RZmS2TACizm6Mrn/hV6SzzgjC9DTbn1Atd6k6Yo7gIgVzKUtGR6UL6suSY+HSewj48QX3iXWP9jUQZMETSaznA="}]},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"nathan7","email":"nathan@nathan7.eu"},"maintainers":[{"name":"nathan7","email":"nathan@nathan7.eu"},{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}]},"1.3.0":{"name":"then-queue","version":"1.3.0","description":"a simple asynchronous queue","main":"index.js","repository":{"type":"git","url":"git://github.com/then/queue.git"},"keywords":["queue","async","promise"],"author":{"name":"Nathan Zadoks"},"license":"MIT","bugs":{"url":"https://github.com/then/queue/issues"},"homepage":"https://github.com/then/queue","dependencies":{"promise":"^6.0.0"},"devDependencies":{"testit":"~1.2.0"},"scripts":{"test":"node test"},"gitHead":"2b8b30dd280542c9aaff2ab4a507db61bdea041d","_id":"then-queue@1.3.0","_shasum":"19f63c2a93335ba54ea942f7eca3d6b8899015fb","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"forbeslindesay","email":"forbes@lindeay.co.uk"},"maintainers":[{"name":"nathan7","email":"nathan@nathan7.eu"},{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"dist":{"shasum":"19f63c2a93335ba54ea942f7eca3d6b8899015fb","tarball":"https://registry.npmjs.org/then-queue/-/then-queue-1.3.0.tgz","integrity":"sha512-5p1q2me8gQFl+GBHoFh0M8Y56XUV0Xl44f71X4HAzCZZI92V1BiBhYDAD4qudC04ZxYoaYCFjOrRoPkO/qzEng==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICeAR84EDk03vR7EOr9IwW4ZlXzpG2kiv6I+fx4NDPnpAiAwxJohtF2ZHPnYwOri0sAON9yXHHMQf8FxaW0l7t01fQ=="}]}}},"readme":"# then-queue\r\n\r\n  a simple asynchronous queue\r\n\r\n[![Build Status](https://img.shields.io/travis/then/queue/master.svg)](https://travis-ci.org/then/queue)\r\n[![Dependency Status](https://img.shields.io/gemnasium/then/queue.svg)](https://gemnasium.com/then/queue)\r\n[![NPM version](https://img.shields.io/npm/v/then-queue.svg)](http://badge.fury.io/js/then-queue)\r\n\r\n## Installation\r\n\r\n    npm install then-queue\r\n\r\n## API\r\n\r\n### new Queue()\r\n\r\n```js\r\nvar Queue = require('then-queue');\r\nvar q = new Queue();\r\n```\r\n\r\n  A fresh queue!\r\n\r\n### queue.push(item)\r\n\r\n  Push an item onto the queue\r\n\r\n### queue.pop() -> Promise Item\r\n\r\n  Pop an item from the queue\r\n\r\n### queue.length\r\n\r\n  Amount of items in the queue (note that this can be negative if `pop` has been called more times than `push`).\r\n\r\n### Events\r\n\r\nThe `length-changed` event gets emitted whenever `pop` or `push` has been called. You could use it to spawn/kill workers when the length changes.","maintainers":[{"name":"nathan7","email":"nathan@nathan7.eu"},{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"time":{"modified":"2022-06-27T06:03:13.783Z","created":"2014-02-01T15:00:15.088Z","1.0.0":"2014-02-01T15:00:15.088Z","1.1.0":"2014-02-01T16:20:56.434Z","1.1.1":"2014-04-27T10:32:05.438Z","1.1.2":"2014-04-27T10:36:11.026Z","1.1.3":"2014-04-27T10:38:04.645Z","1.2.0":"2014-04-28T10:17:37.925Z","1.1.4":"2014-04-30T11:51:24.186Z","1.3.0":"2014-10-17T13:53:13.349Z"},"readmeFilename":"README.md","homepage":"https://github.com/then/queue","keywords":["queue","async","promise"],"repository":{"type":"git","url":"git://github.com/then/queue.git"},"author":{"name":"Nathan Zadoks"},"bugs":{"url":"https://github.com/then/queue/issues"},"license":"MIT"}