Runs JavaScript Promises sequentially with an optional interval. Version 1.1.0 is the latest stable release, last updated in 2019. The package provides a simple function that takes an array of items and a factory function returning promises, executing them one after another. An interval option allows adding a delay between each promise. It has no external dependencies. Differentiators: minimal API, no configuration overhead, pure promise-based sequential execution.
npm install js-promise-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sequentially process an array of items with a promise-returning factory, adding a 500ms interval between executions.
Handle rejections inside factory or add a catch block per item to avoid queue abort.
Verify interval timing in your application logic.
Consider using p-limit or p-queue for active maintenance and more features.
Use p-queue with concurrency option if parallel execution needed.
Use `const promiseQueue = require('js-promise-queue');`Ensure using CommonJS require; package does not export as ES module.
Provide a valid factory function that returns a Promise.
No dependency data recorded yet.