queuefy v1.2.1 is a lightweight TypeScript library wrapping async functions to execute them sequentially in a first-in-first-out queue, ensuring single-thread-like order without backpressure or concurrency control. It is maintained by QIWI and published on npm with a weekly release cadence. Differentiators: zero dependencies, tiny API (single `queuefy` function), and native TypeScript support. Unlike alternatives like p-queue, it offers no concurrency limit or priority — purely FIFO serialization.
npm install queuefyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Wraps an async function with a queue so simultaneous calls run sequentially, each waiting for the previous to resolve.
Use a library like p-queue if you need concurrency control, or implement your own buffer limit.
Ensure the wrapped function does not rely on external state that might change between queued calls, or use closures to capture state per call.
Wrap the function body in try/catch to prevent unhandled rejections from blocking the queue.
Use import { queuefy } from 'queuefy' instead of import queuefy from 'queuefy'.Run npm install queuefy; ensure tsconfig 'moduleResolution' is 'node' and 'esModuleInterop' is true.
Add try/catch inside the wrapped function's implementation.
No dependency data recorded yet.