A lightweight async task queue that enforces sequential execution, ensuring tasks complete one after another. v1.0.5 is the latest stable release; updates are infrequent since the API is minimal and stable. Compared to more complex libraries like bull or bee-queue, this is a zero-dependency solution ideal for scenarios where you simply need to serialize async operations without persistence or scheduling features. It provides a simple Queue class with enqueue, start, stop, and clear methods.
npm install sequential-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a queue, adds two async tasks, and starts sequential execution.
Call queue.start() after adding all tasks.
Ensure running tasks handle cancellation themselves if needed.
Wrap task content in try-catch or use .enqueue with a promise that never rejects.
Use `import { Queue } from 'sequential-queue'` instead of default import.Ensure you instantiate: const q = new Queue();
Use const { Queue } = require('sequential-queue');No dependency data recorded yet.