At only 156 bytes gzipped, pico-queue is a dead-simple, TypeScript-native asynchronous function queue for Node.js and browser. Version 1.2.2 is the current stable release, maintained at a low cadence. It serializes execution of async/sync functions, supports chaining results between tasks, and provides typed generics for safe chaining. Unlike heavier libraries like async/queue or p-limit, pico-queue is minimal but lacks concurrency control or priority.
npm install pico-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates an async queue, pushes three tasks that run in order, then shows chaining and await.
Always attach .catch() or use try/catch around await queue.push().
Provide an initial value if the first task expects a defined argument.
Ignore Travis badge; rely on GitHub status.
Consider p-limit or async.queue if you need concurrency.
import { createAsyncQueue } from 'pico-queue'Always handle rejections: await queue.push(...).catch(e => {}) or use try/catch.No dependency data recorded yet.