A simple, typed FIFO queue for Node.js that guarantees in-order delivery of processed items. Version 2.0.0 is the current stable release with a maintenance cadence. Unlike many FIFO queues that destroy order during parallel processing, SimpleQueue preserves original element order when using callbacks. Ships TypeScript definitions. Requires Node.js >=20.19.0.
npm install SimpleQueueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a SimpleQueue to process items in FIFO order, logging 'Processed X' for each element and 'All done' when queue empties.
Use import SimpleQueue from 'SimpleQueue' or dynamic import.
If you relied on the old default of 10, explicitly pass 10 as the concurrent argument.
Always call callback(null, result) on success, and callback(error, undefined) on failure.
Use the pause/resume and abort properly to manage termination.
Change to import SimpleQueue from 'SimpleQueue'
Use import SimpleQueue from 'SimpleQueue' (default export) instead of import { SimpleQueue } from 'SimpleQueue'No dependency data recorded yet.