{"_id":"sb-promise-queue","_rev":"5-4bd7c2b6bf8757a61b544d09aa9b16bd","name":"sb-promise-queue","dist-tags":{"latest":"2.1.1"},"versions":{"1.0.0":{"name":"sb-promise-queue","version":"1.0.0","keywords":["Promise","queue"],"author":{"name":"steelbrain"},"license":"MIT","_id":"sb-promise-queue@1.0.0","maintainers":[{"name":"steelbrain","email":"i@steelbrain.me"}],"homepage":"https://github.com/steelbrain/promise-queue#readme","bugs":{"url":"https://github.com/steelbrain/promise-queue/issues"},"dist":{"shasum":"78ab17face73ffa3a14d767c0c0e429d3583b7bc","tarball":"https://registry.npmjs.org/sb-promise-queue/-/sb-promise-queue-1.0.0.tgz","fileCount":12,"integrity":"sha512-z1qftkH+2+tyod/cOiaPl7UyNeT6gbzlaxtyfOBcKP6WVUkxLJXBJXoGZR/oadYlDT8v232nirf3q8qYQ8JPUQ==","signatures":[{"sig":"MEUCIBuAVxz2Lq4dylJ+3eyY786cILC2cbjxtszq+AQpkQGQAiEA3sq7GMKgAFz7DhfQ8AMTMVW36yU/yEZVftfGnFI3yk4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6079,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbFEnhCRA9TVsSAnZWagAA/uYQAIE9P5NwCNpv8GFFgzGN\nBEkPnpzSnUaAOaG8vGvpNthmYGGmQ4+i0/xs3fqT27+MfYOkY1gTOCr16hdB\n4WZ0wa6zEeAWIONzdOS6B0MFCpBrbCLx222ELHymcaLomcNH4cul7DCI/mNk\nC5YDq6OmcdTuj6Q4Bri1B55ZNPzYmezhbanSS6OED47fY5+QuDPFfHXTvX8M\nhqjF3BZ0R51LPXPj4yKwy4xP22RT2bdCKzDSgkt+45cEanWXuzy7BsievqoM\n7MlkSDLxivDWrGYUQHC5R50W4WuwpcgfGOjc+HHq62t3dXN7ijF5Eaou3C9x\nou+7rNYX5Cm8zv6icyst4+dWzLVbGAT5+YPxodmRq2xiH1wSSURWuERby2G7\nFrhDMAJ20KobrL/NZn3KS8ZsVSf5ktj040SsgQnpaS8ws4Vtaev9pqo7CMaA\nbN537NtN/d3StUQHE6OYyfJgAMPu2N4tlQeCtQES4Ldsx+tT5wyeNTlbCVED\nkK9e3rPeCMccBrEncHUxGK9vpVxhprJNRzN6zGbsJ3o4wQxA2fgMgN3cSH4R\nRgmk1E9HxOKp0g8anAuDtsT1L+ZsSdS5X7g77BASJcyhzYLYpQuI+ONujXJo\n1j6g66eJI8Hc36MQLe1HVVEkFD9LY/4g93ZIZWr8zweKl7sRVY0BBHZ37tNb\nx02f\r\n=L7/3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","gitHead":"a88429a9dcb750e714c9e3c5eb4e55437c8d2e90","scripts":{"test":"(jest) && (flow check) && (eslint . )","build":"sb-babel-cli -o lib src","watch":"npm run build -- --watch"},"_npmUser":{"name":"steelbrain","email":"i@steelbrain.me"},"repository":{"url":"git+https://github.com/steelbrain/promise-queue.git","type":"git"},"_npmVersion":"6.1.0","description":"Sequential promise queue with a nice API","directories":{},"_nodeVersion":"8.11.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.1.0","flow-bin":"^0.73.0","babel-core":"^6.26.3","sb-babel-cli":"^0.1.1","babel-preset-steelbrain":"^5.0.3","eslint-config-steelbrain":"^5.0.2"},"_npmOperationalInternal":{"tmp":"tmp/sb-promise-queue_1.0.0_1528056289469_0.22894923331292705","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"sb-promise-queue","version":"1.0.1","keywords":["Promise","queue"],"author":{"name":"steelbrain"},"license":"MIT","_id":"sb-promise-queue@1.0.1","maintainers":[{"name":"steelbrain","email":"i@steelbrain.me"}],"homepage":"https://github.com/steelbrain/promise-queue#readme","bugs":{"url":"https://github.com/steelbrain/promise-queue/issues"},"dist":{"shasum":"f94469157cfbf2cd23f189533350ed524fe8b69b","tarball":"https://registry.npmjs.org/sb-promise-queue/-/sb-promise-queue-1.0.1.tgz","fileCount":12,"integrity":"sha512-MGtJjkBZAIiOeXA4UY7EQXbxKfkBc9UwGRSGdLHdhA+u+LZYRKwwIR+8wGFVfnmbinlrety4RSF32a+SrQUtAg==","signatures":[{"sig":"MEUCIGhwbC6CnyV3rI6RWzGmrnV1TUUcE4sG8n62lw9BhA8jAiEAgAOlVA2sGOj5ldZ/LiYS27wRID4K0fYc1HKXcdZXQ90=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6394,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbFE4RCRA9TVsSAnZWagAAplUQAJLqLFhYl/4DmjCczwA2\nIYorlR3Jf2svya5nqwE7djtXIhqfiRUoclzEkOm5Vavmota7/FeYmGf5V/ZC\nLTfIhSasO9SwOIrYa+FbFyt96WUo/66X97zw2KKr/wEafo4jQuYezVSv3qup\nfLIoTy6M/n+zsJjQ0pgBfpqyj/TYIJITR69ObcDdphKU9actU18wfSXU7KPx\n1M5pSCy4e94PIvff0dUit5dc9A7ojoKHNoxd1r3zr1qN9xIj756A9qVnStMX\nwpV8XJcL2DRsmbEMH2lKm85eyX1/U/7cOtxlfW3g2NPltPxeXDvLi4jPF7H8\nzQq2/gbnmZAjvhwJ4SaHQqQWZMPSNXeD7vxQOswmFK2pb+cCIhXvqKqa2dUU\n5TYcZXupNeuDJd31vWQlqPAWudccx6ym2qTjBqMrdbWe89NUk7baCuhYoS4c\nLXGztNWh6yeZv6y0rAIfCBYI20EUzjR4BdDuSarlwYgRzu5EiDu5HE1Dzjpv\nzZ6GBpasT7I0OLBcAEc/S8hsN707KTsrp5wG5M43h0yYIDo2x+GC1r842dyj\nUQs5DDDOyllzryAdqbDdMCXelk6vblyPOt7dAdqf6Ce/p+kSt5XZhiX5oQFH\nBkzXzWaoJt6UASMuqaKcJp3l07cIbd4OGeoNkOFVavMatXStMMDjTy5Im8KX\nXvSX\r\n=/SRU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","gitHead":"ed3dac68aa7d4c8580489c42c2610ef94343a366","scripts":{"test":"(jest) && (flow check) && (eslint . )","build":"sb-babel-cli -o lib src","watch":"npm run build -- --watch"},"_npmUser":{"name":"steelbrain","email":"i@steelbrain.me"},"repository":{"url":"git+https://github.com/steelbrain/promise-queue.git","type":"git"},"_npmVersion":"6.1.0","description":"Sequential promise queue with a nice API","directories":{},"_nodeVersion":"8.11.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.1.0","flow-bin":"^0.73.0","babel-core":"^6.26.3","sb-babel-cli":"^0.1.1","babel-preset-steelbrain":"^5.0.3","eslint-config-steelbrain":"^5.0.2"},"_npmOperationalInternal":{"tmp":"tmp/sb-promise-queue_1.0.1_1528057361320_0.5123985432505782","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"sb-promise-queue","version":"2.0.0","keywords":["Promise","queue"],"author":{"name":"steelbrain"},"license":"MIT","_id":"sb-promise-queue@2.0.0","maintainers":[{"name":"steelbrain","email":"i@steelbrain.me"}],"homepage":"https://github.com/steelbrain/promise-queue#readme","bugs":{"url":"https://github.com/steelbrain/promise-queue/issues"},"ava":{"files":["test/*-test.ts"],"require":["ts-node/register/transpile-only"],"extensions":["ts"]},"dist":{"shasum":"e275a92a958f34b8bd9c8c6cbb760ac39598cb09","tarball":"https://registry.npmjs.org/sb-promise-queue/-/sb-promise-queue-2.0.0.tgz","fileCount":7,"integrity":"sha512-VV7y/iVTM34Aks5GAPn+VRSIx/O95SYfXqZy8nPo9jYvtJKaLMVwnV8X6Zl9oxjZAsWlKVi30N2zbzW0R2RLmg==","signatures":[{"sig":"MEUCIQCUTxu4RAHdNWPKGbusGl0KOI2A9LfOJd/GWZZ5loBJkAIgFpCY5IoxBHzG4j9QpTObW0TocgjvBT+0DUpMzv0zbEA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9114,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJery8JCRA9TVsSAnZWagAA09QQAJZxpaw+5gQZkssJNY3V\nY0v/Mwbwo6Z2G8WEuvHoAPeY1OdQQxJtIjJIR1+cAyjPGMcYljrpwLdFWVYf\nA1wnDXDeY+GPuSgcj1h+GyGiagoF1IAmrrA2kr7Gh6grGx/yjFVoN7Ut1nJv\nSueuneKODaSbyvb7/TCcvUS9GqscivB3fz9tSKx/NVN3BuMHGY2yY+8JSeXb\nboivpTC0jVlfpKIxV6E2sfc/UNGlb0767RD7nykdMikqLwL5sKxk3ccEsyY7\ndHrq03ejactaQ0e9oAFWK9niBOx9Uno39BdieFrulL4kvrRcSOTHVuO7OySD\nGRzcvroa4SQgonn+9U0c145mzix3RrqK8KmiWeIPAem8Z5/6d1W8/lHh7E9w\nq5sgKfQ3iOPK1bt1/IK2ihfrry3EInDbAUKXLGqTlqyfB/q9B4CD3EDiIh05\n1bUr9mCqJmZTJ2ooTgwVlDFXCnO5EucJLlhokCV0Abr11MjoozAdleKCc191\nn5N1O+2GRDaKncTVXV+C/yO6sEBXYiJIYRrHi8hmlB73MaKcNMvzUvtyZekM\nFNKBIZ/e29KFlVFCypxZs/4J+k5aywl/yM2i+36lxYy61LaTohUVqo+92HOr\nUpSBd7xxFKJVd3NLSW/cQP1djnxH1un7NTC6SxBg4npM2iBi58SaqHbFIh+Y\nqHNJ\r\n=6xpE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/cjs/index.js","module":"lib/esm/index.js","engines":{"node":">= 8"},"gitHead":"b8b6d61db37fda66efbf677c072213902c8d2b5f","scripts":{"lint":"(tsc -p . --noEmit) && (eslint . --ext .ts) && (prettier --list-different src/*.ts)","test":"ava","prepare":"yarn build:clean ; yarn build:esm ; yarn build:cjs ; yarn build:typings","build:cjs":"tsc --module commonjs --target es5 --outDir lib/cjs","build:esm":"tsc --module es2015 --target es5 --outDir lib/esm","build:clean":"rm -rf lib","build:typings":"tsc --declaration --outDir lib/typings --emitDeclarationOnly"},"typings":"lib/typings/index.d.ts","_npmUser":{"name":"steelbrain","email":"i@steelbrain.me"},"repository":{"url":"git+https://github.com/steelbrain/promise-queue.git","type":"git"},"_npmVersion":"6.14.4","description":"Promise queue with a nice API","directories":{},"_nodeVersion":"12.16.2","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"ava":"^3.7.0","ts-node":"^8.8.2","typescript":"^3.8.3","eslint-config-steelbrain":"^9.0.1"},"_npmOperationalInternal":{"tmp":"tmp/sb-promise-queue_2.0.0_1588539145102_0.34282447489567525","host":"s3://npm-registry-packages"}},"2.1.0":{"name":"sb-promise-queue","version":"2.1.0","keywords":["Promise","queue"],"author":{"name":"steelbrain"},"license":"MIT","_id":"sb-promise-queue@2.1.0","maintainers":[{"name":"steelbrain","email":"i@steelbrain.me"}],"homepage":"https://github.com/steelbrain/promise-queue#readme","bugs":{"url":"https://github.com/steelbrain/promise-queue/issues"},"ava":{"files":["test/*-test.ts"],"require":["ts-node/register/transpile-only"],"extensions":["ts"]},"dist":{"shasum":"7e44bebef643f75d809a3db7f605b815d877a04d","tarball":"https://registry.npmjs.org/sb-promise-queue/-/sb-promise-queue-2.1.0.tgz","fileCount":7,"integrity":"sha512-zwq4YuP1FQFkGx2Q7GIkZYZ6PqWpV+bg0nIO1sJhWOyGyhqbj0MsTvK6lCFo5TQwX5pZr6SCQ75e8PCDCuNvkg==","signatures":[{"sig":"MEQCICY8jjJg7yb+GO7OcaFL3sNPts7jpentH41kSqzfyGj8AiBA9hthpD8EacCcGY8IT92tDS9NJpYcKadlmq4deXVtsw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8904,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKA8oCRA9TVsSAnZWagAA6cgQAI8MwC85FP00FsZ+7bib\nuz6Z7aP76WfZB0X86dl4kFqtQ2X+9Gp2YOVIWk74or/itUUK4tQplYBF/pFG\nGnneLB+VwgS3Y16QZUaRfW64BFCuXWPXk2raQmDmWsb1xcO+G2QFKi18nEa+\nvCl7VtCbhfrmL7MUTPRz80oki5TQ7w4vbrT1roTbuekHH1U8i4DfeQKP+WuP\nNgzMvr13zzpV+YSLeQS3oW8WDqzNrmaNavrD54pRCLcwzySd4Xave4bbFRco\n3kw6I53vb64C4r5G59BF//2639dM35BvDuV8zcXzv4ja5P9V3LzUIWxLau9g\nPTnfwiLY2eDpWwPE6v+4aZB0GfNY+rHJ6QY4Bluq7eK9QphL9O5A8j+Zsi0Q\naON3+bSiqcZHYkfDA5Ztw39oaX4EzQdgoCHby7QjnNNxEXr1R4ty4UG2xHkm\nCjZghzo8uUy5l/BWB/vw+tlN7PosggyJVcty7OGKkvB63DMobRbgvJvrNRpH\ncg7+o9fOpuW68p+MjXexK1+YvmB3AeXpKKTWcIUYTVErqOmHCsSvU8Kvub/Y\n3+LG7Ewib4j+elKuZNrW3mw3hUA8YDjiMVmQIcerB2sx1d1MfoDkKCdHc6GN\nJ7t/WuF58ALqHERTLA28ZRrzryhZYiRX4xIuc6wU3j2PfEAVpsP3PqIW9toR\nhX3i\r\n=h3TR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/cjs/index.js","type":"commonjs","module":"lib/esm/index.mjs","engines":{"node":">= 8"},"exports":{".":{"import":"./lib/esm/index.mjs","require":"./lib/cjs/index.js"},"./package.json":"./package.json"},"gitHead":"b23c1f631511b32a990bfffb1468969fa7b48b34","scripts":{"lint":"(tsc -p . --noEmit) && (eslint . --ext .ts) && (prettier --list-different src/*.ts)","test":"ava","prepare":"yarn build:clean ; yarn build:esm ; yarn build:cjs ; yarn build:typings","build:cjs":"tsc --module commonjs --target es5 --outDir lib/cjs","build:esm":"tsc --module es2015 --target es2018 --outDir lib/esm && mv lib/esm/index.js lib/esm/index.mjs","build:clean":"rm -rf lib","build:typings":"tsc --declaration --outDir lib/typings --emitDeclarationOnly"},"typings":"lib/typings/index.d.ts","_npmUser":{"name":"steelbrain","email":"i@steelbrain.me"},"repository":{"url":"git+https://github.com/steelbrain/promise-queue.git","type":"git"},"_npmVersion":"6.14.7","description":"Promise queue with a nice API","directories":{},"_nodeVersion":"14.7.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"ava":"^3.7.0","ts-node":"^8.8.2","typescript":"^3.8.3","eslint-config-steelbrain":"^9.0.1"},"_npmOperationalInternal":{"tmp":"tmp/sb-promise-queue_2.1.0_1596460840152_0.16163234168411145","host":"s3://npm-registry-packages"}},"2.1.1":{"name":"sb-promise-queue","version":"2.1.1","description":"Promise queue with a nice API","main":"lib/cjs/index.js","typings":"lib/typings/index.d.ts","module":"lib/esm/index.mjs","exports":{".":{"types":"./lib/typings/index.d.ts","import":"./lib/esm/index.mjs","require":"./lib/cjs/index.js"},"./package.json":"./package.json"},"type":"commonjs","scripts":{"test":"ava","lint":"(tsc -p . --noEmit) && (eslint . --ext .ts) && (prettier --list-different src/*.ts)","prepare":"yarn build:clean ; yarn build:esm ; yarn build:cjs ; yarn build:typings","build:clean":"rm -rf lib","build:esm":"tsc --module es2015 --target es2018 --outDir lib/esm && mv lib/esm/index.js lib/esm/index.mjs","build:cjs":"tsc --module commonjs --target es5 --outDir lib/cjs","build:typings":"tsc --declaration --outDir lib/typings --emitDeclarationOnly"},"repository":{"type":"git","url":"git+https://github.com/steelbrain/promise-queue.git"},"author":{"name":"steelbrain"},"license":"MIT","bugs":{"url":"https://github.com/steelbrain/promise-queue/issues"},"keywords":["Promise","queue"],"homepage":"https://github.com/steelbrain/promise-queue#readme","devDependencies":{"ava":"^3.11.1","eslint-config-steelbrain":"^10.0.0-beta2","ts-node":"^8.10.2","typescript":"^3.9.7"},"dependencies":{},"ava":{"files":["test/*-test.ts"],"extensions":["ts"],"require":["ts-node/register/transpile-only"]},"engines":{"node":">= 8"},"packageManager":"yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e","_id":"sb-promise-queue@2.1.1","gitHead":"6426a6dc22dc84b5f2bdea62548ed26f25abe369","_nodeVersion":"22.11.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-qXfdcJQMxMljxmPprn4Q4hl3pJmoljSCzUvvEBa9Kscewnv56n0KqrO6yWSrGLOL9E021wcGdPa39CHGKA6G0w==","shasum":"f613402111f0da94256a8e73bd66de2e4b674630","tarball":"https://registry.npmjs.org/sb-promise-queue/-/sb-promise-queue-2.1.1.tgz","fileCount":6,"unpackedSize":8611,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDwU+iCkmbHzmZ+VMW+bFUn4rz7wmjJRH+ZYPgP8bYXYAIgfDf/prG1PrSais50rtiCZWfWtRE24byvK9L0qG+gjRM="}]},"_npmUser":{"name":"steelbrain","email":"hello@aneesiqbal.ai"},"directories":{},"maintainers":[{"name":"steelbrain","email":"hello@aneesiqbal.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sb-promise-queue_2.1.1_1736168767990_0.17685442422754294"},"_hasShrinkwrap":false}},"time":{"created":"2018-06-03T20:04:49.468Z","modified":"2025-01-06T13:06:08.360Z","1.0.0":"2018-06-03T20:04:49.651Z","1.0.1":"2018-06-03T20:22:41.386Z","2.0.0":"2020-05-03T20:52:25.256Z","2.1.0":"2020-08-03T13:20:40.312Z","2.1.1":"2025-01-06T13:06:08.165Z"},"bugs":{"url":"https://github.com/steelbrain/promise-queue/issues"},"author":{"name":"steelbrain"},"license":"MIT","homepage":"https://github.com/steelbrain/promise-queue#readme","keywords":["Promise","queue"],"repository":{"type":"git","url":"git+https://github.com/steelbrain/promise-queue.git"},"description":"Promise queue with a nice API","maintainers":[{"name":"steelbrain","email":"hello@aneesiqbal.ai"}],"readme":"# Promise-Queue\n\nPromise queue with a nice API.\n\n### Installation\n\n```\nnpm install --save sb-promise-queue\n```\n\n## API\n\n```js\ninterface Options {\n concurrency?: number\n}\n\nclass PromiseQueue {\n constructor(options: Options = {concurrency: 1});\n\n clear()\n onIdle(callback: Function): Function\n // call the return value function to remove listener\n waitTillIdle(): Promise\n add(callback: Function)\n}\n\nexport { PromiseQueue }\n```\n\n## License\n\nThe contents of this repository/package are licensed under the terms of The MIT License. See the LICENSE file for more info.\n","readmeFilename":"README.md"}