{"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":"http://registry-npm.ywwl.com/sb-promise-queue/download/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","size":2880,"noattachment":false,"key":"/sb-promise-queue/-/sb-promise-queue-1.0.0.tgz"},"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"},"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":1528056289651,"_cnpm_publish_time":1528056289651,"dist-tags":{"latest":"2.1.1"}}