{"id":47605253,"url":"https://github.com/ofershap/tiny-async","last_synced_at":"2026-04-01T19:09:48.745Z","repository":{"id":342388076,"uuid":"1173810841","full_name":"ofershap/tiny-async","owner":"ofershap","description":"All tiny-* async utilities in one package. Drop-in replacements for p-limit, p-map, p-retry, p-queue.","archived":false,"fork":false,"pushed_at":"2026-03-05T21:45:12.000Z","size":266,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-05T22:39:20.676Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ofershap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"ofershap"}},"created_at":"2026-03-05T19:21:53.000Z","updated_at":"2026-03-05T21:45:16.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ofershap/tiny-async","commit_stats":null,"previous_names":["ofershap/tiny-async"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/ofershap/tiny-async","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ofershap%2Ftiny-async","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ofershap%2Ftiny-async/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ofershap%2Ftiny-async/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ofershap%2Ftiny-async/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ofershap","download_url":"https://codeload.github.com/ofershap/tiny-async/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ofershap%2Ftiny-async/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31291090,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T13:12:26.723Z","status":"ssl_error","status_checked_at":"2026-04-01T13:12:25.102Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-01T19:09:48.057Z","updated_at":"2026-04-01T19:09:48.738Z","avatar_url":"https://github.com/ofershap.png","language":"TypeScript","funding_links":["https://github.com/sponsors/ofershap"],"categories":[],"sub_categories":[],"readme":"# tiny-async\n\n[![npm version](https://img.shields.io/npm/v/tiny-pasync.svg)](https://www.npmjs.com/package/tiny-pasync)\n[![npm downloads](https://img.shields.io/npm/dm/tiny-pasync.svg)](https://www.npmjs.com/package/tiny-pasync)\n[![CI](https://github.com/ofershap/tiny-async/actions/workflows/ci.yml/badge.svg)](https://github.com/ofershap/tiny-async/actions/workflows/ci.yml)\n[![TypeScript](https://img.shields.io/badge/TypeScript-strict-blue.svg)](https://www.typescriptlang.org/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nAll tiny-\\* async utilities in one package. Drop-in replacements for `p-limit`, `p-map`, `p-retry`, and `p-queue` that ship ESM + CJS.\n\n```ts\nimport { pLimit, pMap, pRetry, PQueue } from \"tiny-pasync\";\n```\n\n\u003e One install. Four utilities. All dual-format, all typed, all zero-dep individually.\n\n## Install\n\n```bash\nnpm install tiny-pasync\n```\n\n## What's included\n\n| Export                 | Replaces | Docs                                                 |\n| ---------------------- | -------- | ---------------------------------------------------- |\n| `pLimit`               | p-limit  | [tiny-limit](https://github.com/ofershap/tiny-limit) |\n| `pMap`, `pMapSkip`     | p-map    | [tiny-map](https://github.com/ofershap/tiny-map)     |\n| `pRetry`, `AbortError` | p-retry  | [tiny-retry](https://github.com/ofershap/tiny-retry) |\n| `PQueue`               | p-queue  | [tiny-queue](https://github.com/ofershap/tiny-queue) |\n\nEach utility is also available as a standalone package if you only need one.\n\n## Quick examples\n\n### Limit concurrency\n\n```ts\nimport { pLimit } from \"tiny-pasync\";\n\nconst limit = pLimit(5);\nconst results = await Promise.all(urls.map((url) =\u003e limit(() =\u003e fetch(url))));\n```\n\n### Map with concurrency\n\n```ts\nimport { pMap } from \"tiny-pasync\";\n\nconst pages = await pMap(urls, (url) =\u003e fetch(url).then((r) =\u003e r.text()), {\n  concurrency: 10,\n});\n```\n\n### Retry with backoff\n\n```ts\nimport { pRetry } from \"tiny-pasync\";\n\nconst data = await pRetry(() =\u003e fetchFromUnreliableAPI(), { retries: 3 });\n```\n\n### Task queue with priority\n\n```ts\nimport { PQueue } from \"tiny-pasync\";\n\nconst queue = new PQueue({ concurrency: 2 });\nawait queue.add(() =\u003e processJob(1));\nawait queue.add(() =\u003e urgentJob(), { priority: 10 });\nawait queue.onIdle();\n```\n\n## Why not just install the originals?\n\n`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`.\n\nThe tiny-\\* packages ship both ESM and CJS, include TypeScript types, and have zero dependencies. This meta-package re-exports everything from one import.\n\n## The tiny-\\* family\n\n| Package                                                | Replaces             | What it does                   |\n| ------------------------------------------------------ | -------------------- | ------------------------------ |\n| [tiny-limit](https://github.com/ofershap/tiny-limit)   | p-limit              | Concurrency limiter            |\n| [tiny-map](https://github.com/ofershap/tiny-map)       | p-map                | Concurrent map with order      |\n| [tiny-retry](https://github.com/ofershap/tiny-retry)   | p-retry              | Retry with exponential backoff |\n| [tiny-queue](https://github.com/ofershap/tiny-queue)   | p-queue              | Priority task queue            |\n| [tiny-ms](https://github.com/ofershap/tiny-ms)         | ms                   | Parse/format durations         |\n| [tiny-escape](https://github.com/ofershap/tiny-escape) | escape-string-regexp | Escape regex chars             |\n| **tiny-pasync**                                        | all of the above     | One import for all async utils |\n\n## Author\n\n[![Made by ofershap](https://gitshow.dev/api/card/ofershap)](https://gitshow.dev/ofershap)\n\n[![LinkedIn](https://img.shields.io/badge/LinkedIn-Connect-0A66C2?style=flat\u0026logo=linkedin\u0026logoColor=white)](https://linkedin.com/in/ofershap)\n[![GitHub](https://img.shields.io/badge/GitHub-Follow-181717?style=flat\u0026logo=github\u0026logoColor=white)](https://github.com/ofershap)\n\n---\n\nIf this saved you from `ERR_REQUIRE_ESM`, [star the repo](https://github.com/ofershap/tiny-async) or [open an issue](https://github.com/ofershap/tiny-async/issues) if something breaks.\n\n---\n\n\u003csub\u003eREADME built with [README Builder](https://ofershap.github.io/readme-builder/)\u003c/sub\u003e\n\n## License\n\n[MIT](LICENSE) \u0026copy; [Ofer Shapira](https://github.com/ofershap)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fofershap%2Ftiny-async","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fofershap%2Ftiny-async","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fofershap%2Ftiny-async/lists"}