A simple serial task queue for Node.js that processes functions in FIFO order. Version 0.0.2 (last released in 2015, likely abandoned). Unlike promise-based queues (e.g., p-limit) or worker pools, sync-queue uses a callback-driven API where each task must explicitly call queue.next() to proceed. No dependencies, no TypeScript types, no browser support. Ideal only for minimal Node.js scripts with legacy callback patterns.
npm install sync-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates serial execution: tasks run one after another, each calling next() to proceed.
Always instantiate with 'new Queue()'.
Ensure each task calls queue.next() exactly once.
Wrap task bodies in try/catch and call queue.next() in finally or error handler.
Use a closure to capture arguments: queue.place(() => myFunc(arg1, arg2)).
Consider modern alternatives: p-queue, fastq, or async.queue.
Use require('sync-queue') instead of import.Use new Queue() to instantiate.
Use arrow functions or bind: queue.next.bind(queue).
No dependency data recorded yet.