
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@comodinx/async-helpers
Advanced tools
INSPIRATE ON p-limit OF Sindre Sorhus
@comodinx/promise-helpers is a module for optimize promise usage.
$ npm i @comodinx/async-helpers
$ git clone https://gitlab.com/comodinx/async-helpers.git
$ cd async-helpers
$ npm i
Run multiple promise-returning & async functions with limited concurrency
import { asyncLimit } from "@comodinx/async-helpers";
const limit = asyncLimit(1);
const input = [
limit(() => fetchSomething('foo')),
limit(() => fetchSomething('bar')),
limit(() => doSomething())
];
// Only one promise is run at once
const result = await Promise.all(input);
console.log(result);
import { asyncLimitFn } from "@comodinx/async-helpers";
const limitedFunction = asyncLimitFn(async () => {
return doSomething();
}, {concurrency: 1});
const input = Array.from({length: 10}, limitedFunction);
// Only one promise is run at once.
await Promise.all(input);
FAQs
@comodinx/async-helpers is a module for optimize async usage.
We found that @comodinx/async-helpers demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.