miniq

JSON →
library 1.0.1 ·javascript
verified Jun 7, 2026

miniq is a tiny async control flow library for Node.js (v1.0.1) that implements parallelLimit with a concurrency-limited queue. It supports series, parallel, and limited-concurrency patterns by varying the limit parameter (1, Infinity, or a number). Its unique feature allows sharing a single concurrency-limited queue across multiple sets of tasks, each with its own completion callback. The library uses setImmediate to prevent stack overflows, configurable via maxStack property. It focuses on minimalism and avoids result-passing variants, relying on JavaScript scope. Compatible with Node 10.x and above.