queue2.js - Hybrid unordered/ordered queue with injection

JSON →
library 0.2.1 ·javascript maintenance
verified Jun 7, 2026

queue2.js v0.2.1 is a specialized Node.js queue data structure that combines unordered and ordered queuing with injection capabilities. Created by fent, it allows tasks to be executed concurrently with a configurable concurrency limit while supporting ordered processing through task injection. The first worker handles unordered tasks with an inject method to replace the current task with a sequence of ordered tasks. It requires Node >=4 and has no external dependencies. The package is in maintenance mode with no recent updates, and its API includes event emitters for error, drain, full, and empty events. It is a niche solution for specific use cases like asynchronous file reading with ordered subdirectory traversal.