{"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":"http://registry-npm.ywwl.com/sb-promise-queue/download/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","size":2974,"noattachment":false,"key":"/sb-promise-queue/-/sb-promise-queue-1.0.1.tgz"},"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"},"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<void>\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","publish_time":1528057361386,"_cnpm_publish_time":1528057361386,"dist-tags":{"latest":"2.1.1"}}