
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
async-queue-chain
Advanced tools
[](https://www.npmjs.com/package/async-queue-chain) [](https://bundlephobia.com/r
A tiny utility to chain async functions in queue and run them sequentially.
npm install --save async-queue-chain
or
yarn add async-queue-chain
or
pnpm install async-queue-chain
Simply create a queue with fixed number of tasks and run them sequentially.
await createAsyncQueue()
.add(async () => {
// do something
})
.add(async () => {
// do something
})
.run();
Or create a queue, then dynamically add a task from event handler and run queue.
const queue = createAsyncQueue();
document.addEventListener('click', () => {
queue.add(async () => {
// do something
});
queue.run();
});
No matter how fast you'll add tasks, how long it will take to run a task, the queue will run them sequentially. Also, queue will simply skip a "run" call if it's already running.
If a task returns a value, it will be passed to the next task. In such case, you'll need to provide initial value for the first task in run method.
const queue = createAsyncQueue();
for (let i = 0; i < 10; i++) {
queue.add(async (value) => {
// do something
return value + 1;
});
}
const result = await queue.run(0);
console.log(result); // 10
FAQs
[](https://www.npmjs.com/package/async-queue-chain) [](https://bundlephobia.com/r
The npm package async-queue-chain receives a total of 730 weekly downloads. As such, async-queue-chain popularity was classified as not popular.
We found that async-queue-chain demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.