Procession is an asynchronous message queue library for JavaScript and TypeScript. The current stable version is 3.0.2, released in July 2022. It provides backpressure-aware queues for coordinating concurrent tasks, with a simple API for push and pull operations. Key differentiators include its lightweight footprint, no external runtime dependencies, and support for both Node.js and browser environments. It uses a Promise-based interface and supports multiple queue strategies like FIFO and prioritized queues.
npm install processionNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a queue, enqueues two items using push, then dequeues them using pull, demonstrating basic operations.
Use import syntax, or downgrade to v2 if CommonJS is required.
Always use await when calling push or pull.
Use queue.length instead of queue.size.
Check queue.length before pushing, or configure a larger capacity via constructor options.
Use import { push } from 'procession' and call push(queue, item).Run npm install procession, and use import syntax instead of require().
Increase capacity via new Queue({ max: 2048 }) or drain the queue before adding more.No dependency data recorded yet.