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