{"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":"http://registry-npm.ywwl.com/sb-promise-queue/download/sb-promise-queue-2.1.1.tgz","fileCount":6,"unpackedSize":8611,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDwU+iCkmbHzmZ+VMW+bFUn4rz7wmjJRH+ZYPgP8bYXYAIgfDf/prG1PrSais50rtiCZWfWtRE24byvK9L0qG+gjRM="}],"size":2958,"noattachment":false,"key":"/sb-promise-queue/-/sb-promise-queue-2.1.1.tgz"},"_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,"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":1736168768165,"_cnpm_publish_time":1736168768165,"dist-tags":{"latest":"2.1.1"}}