{"id":16195266,"url":"https://github.com/tethik/express-async-error-wrapper","last_synced_at":"2025-04-07T15:55:03.938Z","repository":{"id":71453572,"uuid":"135603050","full_name":"Tethik/express-async-error-wrapper","owner":"Tethik","description":"A stupid wrapper to catch and call `next()` on any errors thrown.","archived":false,"fork":false,"pushed_at":"2020-10-17T14:51:51.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-13T20:07:41.185Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/Tethik.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-31T15:35:05.000Z","updated_at":"2020-10-17T14:51:53.000Z","dependencies_parsed_at":"2023-07-17T22:15:38.420Z","dependency_job_id":null,"html_url":"https://github.com/Tethik/express-async-error-wrapper","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tethik%2Fexpress-async-error-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tethik%2Fexpress-async-error-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tethik%2Fexpress-async-error-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tethik%2Fexpress-async-error-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tethik","download_url":"https://codeload.github.com/Tethik/express-async-error-wrapper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247685626,"owners_count":20979085,"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":[],"created_at":"2024-10-10T08:26:52.590Z","updated_at":"2025-04-07T15:55:03.908Z","avatar_url":"https://github.com/Tethik.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# express-async-error-wrapper\n[![npm version](https://badge.fury.io/js/express-async-error-wrapper.svg)](https://badge.fury.io/js/express-async-error-wrapper)\n\nA stupid wrapper for express routes to catch and call `next()` on any errors thrown, allowing you to\nuse to throw errors while in async functions or promises.\n\n## Example Usage\n```javascript\nconst app = require('express')();\nconst wrap = require('express-async-error-wrapper');\n\n// Will catch the error and go through the express error handler.\napp.use('/with', wrap(async () =\u003e {\n    throw new Error('Oh noes.')\n}));\n\n// Will crash the server and cause timeout in the client.\napp.use('/without', async () =\u003e {\n    throw new Error('Oh noes.')\n});\n\nconsole.log('Starting server on port 8000')\napp.listen(8000);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftethik%2Fexpress-async-error-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftethik%2Fexpress-async-error-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftethik%2Fexpress-async-error-wrapper/lists"}