drainer

JSON →
library 0.2.1 ·javascript
verified Jun 7, 2026

Minimal async task queue that runs an array of functions in series, passing results between them. Version 0.2.1 is the latest and only release. Simple alternative to async.waterfall or p-series, with no dependencies. Provides two modes: direct execution with shared default arguments, and chaining where each function receives the previous function's result. Error handling stops the chain and passes the error to the final callback. Ideal for small Node.js scripts or legacy codebases that need a lightweight serial execution pattern.