{"id":15321809,"url":"https://github.com/eldimious/express-async-handler","last_synced_at":"2025-07-24T23:02:04.191Z","repository":{"id":44538361,"uuid":"456972630","full_name":"eldimious/express-async-handler","owner":"eldimious","description":"Simple middle to handle exceptions and catch error within express routes in asynchronous and pass them to your express error handlers.","archived":false,"fork":false,"pushed_at":"2022-02-17T15:19:10.000Z","size":97,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-17T22:07:44.993Z","etag":null,"topics":["async-await","asynchronous","await","error-handling","error-middleware","express","express-error-handler","express-middleware","handler","nodejs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eldimious.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":null,"support":null}},"created_at":"2022-02-08T14:43:32.000Z","updated_at":"2024-01-21T09:44:28.000Z","dependencies_parsed_at":"2022-08-21T04:30:35.827Z","dependency_job_id":null,"html_url":"https://github.com/eldimious/express-async-handler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldimious%2Fexpress-async-handler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldimious%2Fexpress-async-handler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldimious%2Fexpress-async-handler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldimious%2Fexpress-async-handler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eldimious","download_url":"https://codeload.github.com/eldimious/express-async-handler/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245898335,"owners_count":20690466,"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","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-await","asynchronous","await","error-handling","error-middleware","express","express-error-handler","express-middleware","handler","nodejs"],"created_at":"2024-10-01T09:13:12.037Z","updated_at":"2025-03-27T18:16:27.857Z","avatar_url":"https://github.com/eldimious.png","language":"TypeScript","readme":"\u003ch1 align=\"center\"\u003eWelcome to @dimosbotsaris/express-async-handler 👋\u003c/h1\u003e\n\u003cp\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@dimosbotsaris/express-async-handler\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Version\" src=\"https://img.shields.io/npm/v/@dimosbotsaris/express-async-handler.svg\"\u003e\n  \u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/badge/npm-%3E%3D7.13.0-blue.svg\" /\u003e\n  \u003ca href=\"https://github.com/eldimious/express-async-handler#readme\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Documentation\" src=\"https://img.shields.io/badge/documentation-yes-brightgreen.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/eldimious/express-async-handler/graphs/commit-activity\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Maintenance\" src=\"https://img.shields.io/badge/Maintained%3F-yes-green.svg\" /\u003e\n  \u003c/a\u003e\n\n  \u003ca href=\"https://twitter.com/el_dimious\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Twitter: el_dimious\" src=\"https://img.shields.io/twitter/follow/el_dimious.svg?style=social\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003e Simple Express.js middleware to handle exceptions and catch error within express routes in asynchronous and pass them to your express error handlers.\n\n\n## Install\n\n```sh\nnpm install --save @dimosbotsaris/express-async-handler\n```\n\n## Usage\n\n```ts\nimport express, { Request, Response, NextFunction, Router } from 'express';\nimport { asyncWrapper } from '@dimosbotsaris/express-async-handler';\n\nexpress.get('/', asyncWrapper(async (req: Request, res: Response, next: NextFunction) =\u003e {\n  const baz = await foo.findAll();\n  res.send(baz)\n}))\n```\n\n## Run tests\n\n```sh\nnpm run test\n```\n\n## Author\n\n👤 **Dimos Botsaris**\n\n* Website: https://www.eldimious.com\n* Twitter: [@el_dimious](https://twitter.com/el_dimious)\n* Github: [@eldimious](https://github.com/eldimious)\n* LinkedIn: [@dimosthenis-botsaris-5ab16485](https://www.linkedin.com/in/dimosthenis-botsaris-5ab16485/)\n\n## Support Me\n\n[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/Y8Y797KCA)\n\n## Show your support\n\nGive a ⭐️ if this project helped you!\n","funding_links":["https://ko-fi.com/Y8Y797KCA"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feldimious%2Fexpress-async-handler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feldimious%2Fexpress-async-handler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feldimious%2Fexpress-async-handler/lists"}