{"_id":"@esm2cjs/p-queue","name":"@esm2cjs/p-queue","dist-tags":{"latest":"7.3.0"},"versions":{"7.3.0":{"name":"@esm2cjs/p-queue","version":"7.3.0","description":"Promise queue with concurrency control. This is a fork of sindresorhus/p-queue, but with CommonJS support.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/esm2cjs/p-queue.git"},"funding":"https://github.com/sponsors/AlCalzone","exports":{".":{"import":"./build/esm/index.js","require":"./build/cjs/index.js"},"./package.json":"./package.json"},"engines":{"node":">=12"},"scripts":{"build":"del build/ && tsc","test":"xo && nyc ava","bench":"node --loader=ts-node/esm bench.ts"},"types":"build/esm/index.d.ts","keywords":["promise","queue","enqueue","limit","limited","concurrency","throttle","throat","rate","batch","ratelimit","priority","priorityqueue","fifo","job","task","async","await","promises","bluebird"],"dependencies":{"@esm2cjs/p-timeout":"^5.0.2","eventemitter3":"^4.0.7"},"devDependencies":{"@sindresorhus/tsconfig":"^2.0.0","@types/benchmark":"^2.1.1","@types/node":"^17.0.13","ava":"^4.0.1","benchmark":"^2.1.4","codecov":"^3.8.3","del-cli":"^4.0.1","delay":"^5.0.0","in-range":"^3.0.0","nyc":"^15.1.0","p-defer":"^4.0.0","random-int":"^3.0.0","time-span":"^5.0.0","ts-node":"^10.4.0","typescript":"^4.5.5","xo":"^0.44.0"},"ava":{"files":["test/**"],"extensions":{"ts":"module"},"nodeArguments":["--loader=ts-node/esm"]},"xo":{"rules":{"@typescript-eslint/member-ordering":"off","@typescript-eslint/no-floating-promises":"off","@typescript-eslint/no-invalid-void-type":"off"},"ignores":["build","test","**/*.test-d.ts","**/*.d.ts"]},"nyc":{"extension":[".ts"]},"author":{"name":"Dominic Griesel","email":"d.griesel@gmx.net"},"publishConfig":{"access":"public"},"main":"build/cjs/index.js","module":"build/esm/index.js","typesVersions":{"*":{"build/esm/index.d.ts":["build/esm/index.d.ts"],"build/cjs/index.d.ts":["build/esm/index.d.ts"],"*":["build/esm/*"]}},"gitHead":"c430859a5d8e5e909ea4a3b59c121dbf19bb7767","bugs":{"url":"https://github.com/esm2cjs/p-queue/issues"},"homepage":"https://github.com/esm2cjs/p-queue#readme","_id":"@esm2cjs/p-queue@7.3.0","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-2sLG0pX2KlvRRv/UXOoZ1tg9w1V2FAerm514BWq1ykNlJPHaIpz0GfbaBWFgCFSlfcaHmxjvs7ZlHtPrPUXWMg==","shasum":"b7d08399168ebbcc42a81d3bdf65004aa24407b4","tarball":"https://registry.npmjs.org/@esm2cjs/p-queue/-/p-queue-7.3.0.tgz","fileCount":25,"unpackedSize":87118,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEtkXp/ubHzK/bgZaChBMXqL1dw+MrtRqbJadEqVA9MoAiEAkuxRMQpcAFhKJZP0KurmyZM3oDpKwzeLSOiX6Ktgo6k="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjBh1XACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmouFxAAoF4I2VmI8PZCb2t2QQjthSSnci2uUtpsBWDTl60FBLyYYf1R\r\nG+UCOvuaWIyGso6ihr+T3pbJnvyYbLLMZFGgyhsbrrYHRE0jQz1/raBPBGR/\r\nq00uR+4trLJv2d6zWyE4EEvsu4qygUHdN0Iv1IQFnh/36f6jNCd7vkKP5GRy\r\nZKUgGwurl6Gk5bL5BzQGEMztin3jOHZd13WYM3YYgs+JdxV88jlNugWfQshN\r\n5ByVJBPWMiEaiy9qtZhQAh5hLAg/P1zcdAiG2Qj8UDDdQbYHQQ5dN4cn4DNG\r\nQb0sGx60lEShDS6uT+cJlpsZ+VgC9VBxo5TSwUw6Zv7PcTedwZB1eh+suBt3\r\niX+1r/sZpnrRifaFMplFureQjOW03D3giHZBruXxVdRF8cXdKOgHSNW+YSym\r\npiaomJTGnHwGTPsXbAjv5y6nFeek/a9gN6Uv3v78bgaTBCFJ+CCCcm88/3mW\r\nE8AqK+sIBLvbLwwuzpgVxn040rFVzUvdzGr0mNUsxJ3ixm2Tx6USrmDGd5Bo\r\ntQRI6fBwXtdjls0+5RpjRSKSIoxcLdcSM2oF9ZBMyLOz0XS4KGNZzyjZ6way\r\n9jsajBcUcOunJLS2znEjfKtcPea/48npncIje7hcPNTbnZg3hqq9mTsFq3Fq\r\n88kZPVRCNQBW+oJpjSPmZ1ccvHFVYEDsRxE=\r\n=fehX\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"alcalzone","email":"d.griesel@gmx.net"},"directories":{},"maintainers":[{"name":"alcalzone","email":"d.griesel@gmx.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-queue_7.3.0_1661345111223_0.753229876216682"},"_hasShrinkwrap":false}},"time":{"created":"2022-08-24T12:45:11.134Z","7.3.0":"2022-08-24T12:45:11.429Z","modified":"2022-08-24T12:45:11.602Z"},"maintainers":[{"name":"alcalzone","email":"d.griesel@gmx.net"}],"description":"Promise queue with concurrency control. This is a fork of sindresorhus/p-queue, but with CommonJS support.","homepage":"https://github.com/esm2cjs/p-queue#readme","keywords":["promise","queue","enqueue","limit","limited","concurrency","throttle","throat","rate","batch","ratelimit","priority","priorityqueue","fifo","job","task","async","await","promises","bluebird"],"repository":{"type":"git","url":"git+https://github.com/esm2cjs/p-queue.git"},"author":{"name":"Dominic Griesel","email":"d.griesel@gmx.net"},"bugs":{"url":"https://github.com/esm2cjs/p-queue/issues"},"license":"MIT","readme":"# @esm2cjs/p-queue\n\nThis is a fork of https://github.com/sindresorhus/p-queue, but automatically patched to support ESM **and** CommonJS, unlike the original repository.\n\n## Install\n\nYou can use an npm alias to install this package under the original name:\n\n```\nnpm i p-queue@npm:@esm2cjs/p-queue\n```\n\n```jsonc\n// package.json\n\"dependencies\": {\n    \"p-queue\": \"npm:@esm2cjs/p-queue\"\n}\n```\n\nbut `npm` might dedupe this incorrectly when other packages depend on the replaced package. If you can, prefer using the scoped package directly:\n\n```\nnpm i @esm2cjs/p-queue\n```\n\n```jsonc\n// package.json\n\"dependencies\": {\n    \"@esm2cjs/p-queue\": \"^ver.si.on\"\n}\n```\n\n## Usage\n\n```js\n// Using ESM import syntax\nimport pQueue, { AbortError } from \"@esm2cjs/p-queue\";\n\n// Using CommonJS require()\nconst pQueue = require(\"@esm2cjs/p-queue\").default;\nconst { AbortError } = require(\"@esm2cjs/p-queue\");\n```\n\n> **Note:**\n> Because the original module uses `export default`, you need to append `.default` to the `require()` call to access `pQueue` itself.\n\nFor more details, please see the original [repository](https://github.com/sindresorhus/p-queue).\n\n## Sponsoring\n\nTo support my efforts in maintaining the ESM/CommonJS hybrid, please sponsor [here](https://github.com/sponsors/AlCalzone).\n\nTo support the original author of the module, please sponsor [here](https://github.com/sindresorhus/p-queue).\n","readmeFilename":"readme.md"}