A tiny utility (1.1.0) to chain async functions in a queue and run them sequentially. Released as ESM/CJS with TypeScript types. Unlike general-purpose async queues (e.g., p-limit, Bottleneck), this package focuses on a chainable API, automatic sequential execution, and value passing between tasks. Ideal for managing event-driven workflows where tasks must not overlap. Maintained on GitHub with minimal dependencies.
npm install async-queue-chainNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates an async queue, adds two tasks that pass values, and runs sequentially.
Use named import { createAsyncQueue } instead.Provide an initial value to run() when tasks chain values: await queue.run(initialValue)
Ensure you await run() or handle the promise to avoid silent drops.
Change to import { createAsyncQueue } from 'async-queue-chain'Run npm install async-queue-chain and verify import path
No dependency data recorded yet.