A minimal library for running a queue of functions sequentially, passing results through a chain of callbacks. Version 1.1.2 is stable with no recent updates. It provides a simple chainable API for sequential async execution, similar to async.waterfall but with a different calling convention. Lightweight and dependency-free.
npm install runqNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a queue, adds two steps to increment and double, runs with initial value 1, and logs the result 4.
Always call cb(null, result) or similar; do not omit error argument.
If multiple values needed, pass an object or array.
Check errors in each step; use patterns like if(err) return cb(err);
Chain all .add() calls before .run().
Pass the starting value as second argument to .run() (first argument is final callback).
Use require('runq') instead of import.Use const q = runq(); (no new).
Ensure each function only calls cb exactly once.
No dependency data recorded yet.