Promise queue with concurrency control for rate-limiting async operations. Stable version 6.2.4, ships TypeScript definitions, requires Node >=8. Actively maintained (by sindresorhus). Key differentiators: optional priority, interval-based rate limiting, timeout support, and custom queue classes. ESM-only since v7, but v6 supports both ESM and CJS.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
p-queue v7+ is ESM-only; for v6 (CJS), use const { default: PQueue } = require('p-queue'). In TypeScript with ESM, import PQueue from 'p-queue' works directly.
PriorityQueue is a named export, not a default export or a subpath export.
QueueAddOptions is a TypeScript type; use type-only import to avoid runtime errors.
Shows basic usage: create a queue with concurrency=2 and rate limit of 5 tasks per second, then add 10 async tasks.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.