Promise queue with concurrency control, version 9.3.0. Feature-complete library by Sindre Sorhus for rate-limiting async operations. Useful for REST API calls, CPU/memory intensive tasks, and batch processing. Supports concurrency limits, per-task timeouts, priority queuing, and rate limiting via interval caps. ESM-only since v7; requires Node.js >=20. Alternative to bottleneck, async.queue, or p-limit with richer scheduling features.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
ESM-only since v7; CommonJS require() will fail with ERR_REQUIRE_ESM.
Named export; path-based imports are not supported.
Default export is the class; named export PQueue does not exist. For types, use import PQueue from 'p-queue'.
Creates a queue with concurrency 2 and rate limit (5 requests/sec). Adds fetch tasks and waits for all results.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.