A lightweight Node.js task queue that processes tasks sequentially with a configurable minimum time interval between executions. Version 0.0.2 is the current stable release. It supports push and unshift operations, event-driven task handling, and shared state via variables. Ideal for rate-limiting or throttling operations where tasks must not execute too frequently.
npm install tasks-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create a queue with minimum 500ms between tasks, push tasks, process them, and log final sum.
Call jinn.done() after processing each task
Pin exact version in package.json
Use immutable data or clone before mutation
N/A
Use identical string for event registration and pushTask
const q = new (require('tasks-queue'))();Ensure jinn is the first argument of the event handler
q.setMaxListeners(n) or remove old listeners
queue.on('tasktype', function jinn, data { ... })No dependency data recorded yet.