{"id":23275670,"url":"https://github.com/myrotvorets/express-async-middleware-wrapper","last_synced_at":"2025-08-21T08:31:49.928Z","repository":{"id":36982740,"uuid":"271199393","full_name":"myrotvorets/express-async-middleware-wrapper","owner":"myrotvorets","description":"Wrapper for Express.js async middleware to handle rejected promises and synchronous exceptions","archived":false,"fork":false,"pushed_at":"2025-08-18T06:10:09.000Z","size":3351,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-18T08:21:37.075Z","etag":null,"topics":["express-async-middleware","express-middleware","handle-rejected-promises"],"latest_commit_sha":null,"homepage":"https://myrotvorets.center/","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/myrotvorets.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":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-06-10T06:41:47.000Z","updated_at":"2025-08-18T06:10:11.000Z","dependencies_parsed_at":"2023-12-13T21:58:23.124Z","dependency_job_id":"ca76799d-a144-435c-80ea-eb3c6b2fb919","html_url":"https://github.com/myrotvorets/express-async-middleware-wrapper","commit_stats":{"total_commits":784,"total_committers":4,"mean_commits":196.0,"dds":"0.36734693877551017","last_synced_commit":"c8fdeb97f743961abe2bd30e4c28ce689ac49bdc"},"previous_names":[],"tags_count":36,"template":false,"template_full_name":null,"purl":"pkg:github/myrotvorets/express-async-middleware-wrapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myrotvorets%2Fexpress-async-middleware-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myrotvorets%2Fexpress-async-middleware-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myrotvorets%2Fexpress-async-middleware-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myrotvorets%2Fexpress-async-middleware-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/myrotvorets","download_url":"https://codeload.github.com/myrotvorets/express-async-middleware-wrapper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myrotvorets%2Fexpress-async-middleware-wrapper/sbom","scorecard":{"id":351311,"data":{"date":"2025-08-11","repo":{"name":"github.com/myrotvorets/express-async-middleware-wrapper","commit":"661b63ab06024b27c9fa208e8eb5debd96a7669f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":7.1,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/25 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":"Maintained","score":10,"reason":"30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"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":"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":"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":"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":"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":"Pinned-Dependencies","score":9,"reason":"dependency not pinned by hash detected -- score normalized to 9","details":["Warn: npmCommand not pinned by hash: .github/workflows/audit-signatures.yml:42","Info:   9 out of   9 GitHub-owned GitHubAction dependencies pinned","Info:  20 out of  20 third-party GitHubAction dependencies pinned","Info:   1 out of   2 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":"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":"Token-Permissions","score":10,"reason":"GitHub workflow tokens follow principle of least privilege","details":["Info: jobLevel 'contents' permission set to 'read': .github/workflows/audit-signatures.yml:18","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:29","Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:28","Info: jobLevel 'contents' permission set to 'read': .github/workflows/dependency-review.yml:14","Info: jobLevel 'contents' permission set to 'read': .github/workflows/lint.yml:24","Info: jobLevel 'contents' permission set to 'read': .github/workflows/lint.yml:47","Info: jobLevel 'contents' permission set to 'read': .github/workflows/publish.yml:22","Info: jobLevel 'contents' permission set to 'read': .github/workflows/publish.yml:45","Warn: jobLevel 'packages' permission set to 'write': .github/workflows/publish.yml:46","Warn: jobLevel 'statuses' permission set to 'write': .github/workflows/publish.yml:47","Info: jobLevel 'contents' permission set to 'read': .github/workflows/push-tag.yml:16","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/push-tag.yml:38","Info: jobLevel 'contents' permission set to 'read': .github/workflows/sonarscan.yml:20","Info: topLevel 'contents' permission set to 'read': .github/workflows/audit-signatures.yml:11","Info: topLevel 'contents' permission set to 'read': .github/workflows/build.yml:12","Info: topLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:15","Info: topLevel 'contents' permission set to 'read': .github/workflows/dependency-review.yml:7","Info: topLevel 'contents' permission set to 'read': .github/workflows/lint.yml:11","Info: topLevel 'contents' permission set to 'read': .github/workflows/package-audit.yml:14","Info: topLevel 'contents' permission set to 'read': .github/workflows/publish.yml:15","Info: topLevel 'contents' permission set to 'read': .github/workflows/push-tag.yml:9","Info: topLevel 'contents' permission set to 'read': .github/workflows/sonarscan.yml:13"],"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":"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":"SAST","score":10,"reason":"SAST tool is run on all commits","details":["Info: SAST configuration detected: CodeQL","Info: all commits (29) 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":10,"reason":"0 existing vulnerabilities detected","details":null,"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-18T08:21:46.192Z","repository_id":36982740,"created_at":"2025-08-18T08:21:46.192Z","updated_at":"2025-08-18T08:21:46.192Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270968029,"owners_count":24677125,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["express-async-middleware","express-middleware","handle-rejected-promises"],"created_at":"2024-12-19T21:15:55.725Z","updated_at":"2025-08-21T08:31:49.682Z","avatar_url":"https://github.com/myrotvorets.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# express-async-middleware-wrapper\n\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=myrotvorets_express-async-middleware-wrapper\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=myrotvorets_express-async-middleware-wrapper)\n[![Build and Test](https://github.com/myrotvorets/express-async-middleware-wrapper/actions/workflows/build.yml/badge.svg)](https://github.com/myrotvorets/express-async-middleware-wrapper/actions/workflows/build.yml)\n\nWrapper for Express.js async middleware to handle rejected promises and synchronous exceptions.\n\nThis library is similar to [express-async-handler](https://www.npmjs.com/package/express-async-handler) but is written in TypeScript, and its typings handle more cases than those of `express-async-handler` (for example, it can deal with the changes introduced in [DefinitelyTyped/DefinitelyTyped#49677](https://github.com/DefinitelyTyped/DefinitelyTyped/pull/49677))\n\n# Usage\n\n```typescript\nimport { Request, Response, Router } from 'express';\nimport wrapper from '@myrotvorets/express-async-middleware-wrapper';\n\nasync function handler(req: Request, res: Response): Promise\u003cvoid\u003e {\n    const someAsyncResult = await someAsyncAction();\n    res.json(someAsyncResult);\n}\n\nconst router = Router();\nrouter.get('/some-path', wrapper(handler));\n```\n\n# What it Does\n\nIt provides error handling for asynchronous middleware by catching rejected promises and synchronous exceptions from handler's code.\n\nThis wrapper simplfies development by eliminating the need to write boilerplate code for asynchronous handlers.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyrotvorets%2Fexpress-async-middleware-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmyrotvorets%2Fexpress-async-middleware-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyrotvorets%2Fexpress-async-middleware-wrapper/lists"}