
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
tiny-pasync
Advanced tools
All tiny-* async utilities in one package. Drop-in replacements for p-limit, p-map, p-retry, p-queue. ESM + CJS, zero transitive dependencies.
All tiny-* async utilities in one package. Drop-in replacements for p-limit, p-map, p-retry, and p-queue that ship ESM + CJS.
import { pLimit, pMap, pRetry, PQueue } from "tiny-pasync";
One install. Four utilities. All dual-format, all typed, all zero-dep individually.
npm install tiny-pasync
| Export | Replaces | Docs |
|---|---|---|
pLimit | p-limit | tiny-limit |
pMap, pMapSkip | p-map | tiny-map |
pRetry, AbortError | p-retry | tiny-retry |
PQueue | p-queue | tiny-queue |
Each utility is also available as a standalone package if you only need one.
import { pLimit } from "tiny-pasync";
const limit = pLimit(5);
const results = await Promise.all(urls.map((url) => limit(() => fetch(url))));
import { pMap } from "tiny-pasync";
const pages = await pMap(urls, (url) => fetch(url).then((r) => r.text()), {
concurrency: 10,
});
import { pRetry } from "tiny-pasync";
const data = await pRetry(() => fetchFromUnreliableAPI(), { retries: 3 });
import { PQueue } from "tiny-pasync";
const queue = new PQueue({ concurrency: 2 });
await queue.add(() => processJob(1));
await queue.add(() => urgentJob(), { priority: 10 });
await queue.onIdle();
p-limit v4+, p-map v6+, p-retry v6+, and p-queue v8+ are all ESM-only. CommonJS projects that require() them get ERR_REQUIRE_ESM.
The tiny-* packages ship both ESM and CJS, include TypeScript types, and have zero dependencies. This meta-package re-exports everything from one import.
| Package | Replaces | What it does |
|---|---|---|
| tiny-limit | p-limit | Concurrency limiter |
| tiny-map | p-map | Concurrent map with order |
| tiny-retry | p-retry | Retry with exponential backoff |
| tiny-queue | p-queue | Priority task queue |
| tiny-ms | ms | Parse/format durations |
| tiny-escape | escape-string-regexp | Escape regex chars |
| tiny-pasync | all of the above | One import for all async utils |
If this saved you from ERR_REQUIRE_ESM, star the repo or open an issue if something breaks.
FAQs
All tiny-* async utilities in one package. Drop-in replacements for p-limit, p-map, p-retry, p-queue. ESM + CJS, zero transitive dependencies.
We found that tiny-pasync 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

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.