PQueue

JSON →
library 8.0.4 ·javascript
verified Jun 7, 2026

A promise queue with concurrency control, rate-limiting, priority, timeout, and abort support. Current stable version is 8.0.4, a fork of the popular p-queue library modified to support both CommonJS and ESM without the original's ESM-only restriction. Released in lockstep with upstream but may bump minor versions independently. Key differentiators: works in CJS and ESM (unlike p-queue v7+ which is ESM-only), EventEmitter3-based, supports interval-based rate limiting, priority queuing, and AbortSignal cancellation. Useful for rate-limiting async operations like REST API calls or CPU/memory intensive tasks.