{"id":17262876,"url":"https://github.com/jpwilliams/waitgroup","last_synced_at":"2026-03-11T01:32:00.080Z","repository":{"id":38984343,"uuid":"226516118","full_name":"jpwilliams/waitgroup","owner":"jpwilliams","description":"A tiny version of Golang's WaitGroup with typings, promises, and zero dependencies.","archived":false,"fork":false,"pushed_at":"2025-05-30T21:50:12.000Z","size":336,"stargazers_count":12,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-23T22:48:58.687Z","etag":null,"topics":["async","golang","group","promises","wait","waitgroup"],"latest_commit_sha":null,"homepage":"","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/jpwilliams.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-12-07T13:15:55.000Z","updated_at":"2025-03-31T20:41:46.000Z","dependencies_parsed_at":"2023-11-17T23:56:32.848Z","dependency_job_id":"7e33bfde-ceaa-432f-8b00-ef77c0bd2f43","html_url":"https://github.com/jpwilliams/waitgroup","commit_stats":{"total_commits":152,"total_committers":5,"mean_commits":30.4,"dds":0.6907894736842105,"last_synced_commit":"bb1a6da5cfb40e7881e3f0b5bea79847598fd8fc"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/jpwilliams/waitgroup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpwilliams%2Fwaitgroup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpwilliams%2Fwaitgroup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpwilliams%2Fwaitgroup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpwilliams%2Fwaitgroup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpwilliams","download_url":"https://codeload.github.com/jpwilliams/waitgroup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpwilliams%2Fwaitgroup/sbom","scorecard":{"id":536315,"data":{"date":"2025-08-11","repo":{"name":"github.com/jpwilliams/waitgroup","commit":"7fa52032b7805dc762723649038db05264694fe5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/15 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":2,"reason":"dependency not pinned by hash detected -- score normalized to 2","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/testAndPublishOnTag.yml:66: update your workflow using https://app.stepsecurity.io/secureworkflow/jpwilliams/waitgroup/testAndPublishOnTag.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/testAndPublishOnTag.yml:67: update your workflow using https://app.stepsecurity.io/secureworkflow/jpwilliams/waitgroup/testAndPublishOnTag.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/testAndPublishOnTag.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/jpwilliams/waitgroup/testAndPublishOnTag.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/testAndPublishOnTag.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/jpwilliams/waitgroup/testAndPublishOnTag.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/testAndPublishOnTag.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/jpwilliams/waitgroup/testAndPublishOnTag.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/testAndPublishOnTag.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/jpwilliams/waitgroup/testAndPublishOnTag.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/testAndPublishOnTag.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/jpwilliams/waitgroup/testAndPublishOnTag.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/testAndPublishOnTag.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/jpwilliams/waitgroup/testAndPublishOnTag.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/testAndPublishOnTag.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/jpwilliams/waitgroup/testAndPublishOnTag.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/testOnPush.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/jpwilliams/waitgroup/testOnPush.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/testOnPush.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/jpwilliams/waitgroup/testOnPush.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/testOnPush.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/jpwilliams/waitgroup/testOnPush.yml/master?enable=pin","Info:   0 out of  12 GitHub-owned GitHubAction dependencies pinned","Info:   5 out of   5 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'contents' permission set to 'read': .github/workflows/testAndPublishOnTag.yml:63","Warn: no topLevel permission defined: .github/workflows/testAndPublishOnTag.yml:1","Warn: no topLevel permission defined: .github/workflows/testOnPush.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 15 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-q765-wm9j-66qj","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T07:04:13.594Z","repository_id":38984343,"created_at":"2025-08-20T07:04:13.594Z","updated_at":"2025-08-20T07:04:13.594Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30366051,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"ssl_error","status_checked_at":"2026-03-10T21:40:59.357Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["async","golang","group","promises","wait","waitgroup"],"created_at":"2024-10-15T07:54:56.315Z","updated_at":"2026-03-11T01:32:00.057Z","avatar_url":"https://github.com/jpwilliams.png","language":"TypeScript","readme":"# @jpwilliams/waitgroup\n\n![npm version](https://img.shields.io/npm/v/@jpwilliams/waitgroup) [![JSR](https://jsr.io/badges/@jpwilliams/waitgroup)](https://jsr.io/@jpwilliams/waitgroup)\n ![Test on\n push](https://github.com/jpwilliams/waitgroup/workflows/Test%20on%20push/badge.svg)\n ![Downloads](https://img.shields.io/npm/dm/@jpwilliams/waitgroup)\n\nA tiny version of Golang's [WaitGroup](https://golang.org/pkg/sync/#WaitGroup).\n\n- Tiny (\u003c1kB)\n- Works with \u003cimg alt=\"browsers\" title=\"This package works with browsers.\" height=\"16px\"\n  src=\"https://jsr.io/logos/browsers.svg\" /\u003e \u003cimg alt=\"Deno\" title=\"This package\n  works with Deno.\" height=\"16px\"\n  src=\"https://jsr.io/logos/deno.svg\" /\u003e \u003cimg alt=\"Node.js\" title=\"This package\n  works with Node.js\" height=\"16px\"\n  src=\"https://jsr.io/logos/node.svg\" /\u003e \u003cimg alt=\"Cloudflare Workers\"\n  title=\"This package works with Cloudflare Workers.\" height=\"16px\"\n  src=\"https://jsr.io/logos/cloudflare-workers.svg\" /\u003e \u003cimg alt=\"Bun\"\n  title=\"This package works with Bun.\" height=\"16px\"\n  src=\"https://jsr.io/logos/bun.svg\" /\u003e\n- Typed\n- Zero dependencies 🎉\n\nThere are too many package managers 🥲\n\n```sh\n# From npm\nnpm install @jpwilliams/waitgroup\nyarn add @jpwilliams/waitgroup\npnpm add @jpwilliams/waitgroup\n```\n\n```sh\n# From JSR\nnpx jsr add @jpwilliams/waitgroup\nbunx jsr add @jpwilliams/waitgroup\ndeno add @jpwilliams/waitgroup\nyarn dlx jsr add @jpwilliams/waitgroup\npnpm dlx jsr add @jpwilliams/waitgroup\n```\n\n```ts\nimport http from \"http\";\nimport { WaitGroup } from \"@jpwilliams/waitgroup\";\n\nasync function main() {\n  const wg = new WaitGroup();\n\n  const urls = [\n    \"http://www.golang.org/\",\n    \"http://www.google.com/\",\n    \"http://www.somestupidname.com/\",\n  ];\n\n  urls.forEach((url) =\u003e {\n    // Increment the WaitGroup counter\n    wg.add(1);\n    // Fetch the URL\n    http.get(url, () =\u003e {\n      // Decrement the counter when the GET is complete\n      wg.done();\n    });\n  });\n\n  // Wait for all HTTP fetches to complete\n  await wg.wait();\n}\n\nmain();\n```\n\nFor most applications in Node.js, using built-ins like `Promise.all` will work perfectly, but sometimes this can be a really nice abstraction if the promises you have to keep track of are pretty spread out.\n\nSee [jpwilliams/waitgroup-deno](https://github.com/jpwilliams/waitgroup-deno)\nfor a strictly [Deno](https://deno.land/) version, or [@jpwilliams/waitgroup](https://jsr.io/@jpwilliams/waitgroup) on [JSR](https://jsr.io/@jpwilliams/waitgroup).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpwilliams%2Fwaitgroup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpwilliams%2Fwaitgroup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpwilliams%2Fwaitgroup/lists"}