{"id":18743284,"url":"https://github.com/rimiti/express-async","last_synced_at":"2025-10-24T16:34:19.034Z","repository":{"id":89492962,"uuid":"168832622","full_name":"rimiti/express-async","owner":"rimiti","description":"🦑 Async wrapper for express functions.","archived":false,"fork":false,"pushed_at":"2019-02-08T08:51:49.000Z","size":98,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T15:48:12.587Z","etag":null,"topics":["async","controller","controllers","express","router"],"latest_commit_sha":null,"homepage":"https://dimsolution.com/blog/2019-02-12/how-to-use-async-await-functions-with-express/","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/rimiti.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":"2019-02-02T13:07:05.000Z","updated_at":"2025-03-10T13:34:28.000Z","dependencies_parsed_at":"2023-05-09T15:24:00.214Z","dependency_job_id":null,"html_url":"https://github.com/rimiti/express-async","commit_stats":{"total_commits":31,"total_committers":1,"mean_commits":31.0,"dds":0.0,"last_synced_commit":"3461e49318db810162474f41764a7d5303a5ce09"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rimiti%2Fexpress-async","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rimiti%2Fexpress-async/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rimiti%2Fexpress-async/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rimiti%2Fexpress-async/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rimiti","download_url":"https://codeload.github.com/rimiti/express-async/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248635963,"owners_count":21137344,"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","controller","controllers","express","router"],"created_at":"2024-11-07T16:10:53.667Z","updated_at":"2025-10-24T16:34:18.968Z","avatar_url":"https://github.com/rimiti.png","language":"TypeScript","readme":"# express-async\n\n[![Build Status][travis-badge]][travis]\n[![Dependencies][prod-dependencies-badge]][prod-dependencies]\n[![MIT License][license-badge]][LICENSE]\n[![PRs Welcome][prs-badge]][prs]\n\n## Description\n\nAsync wrapper for express functions.\n\n## Install\n\n```bash\n$ npm i @rimiti/express-async -S\n```\n\n## How to use it?\n\n### Importation\n\nFrom commonJS\n\n```js\nconst {wrapAsync} = require('@rimiti/express-async');\n```\n\nor from ES6:\n\n```js\nimport {wrapAsync} from '@rimiti/express-async';\n```\n\n### Example\n\n```js\nimport express from 'express';\nimport {wrapAsync} from '@rimiti/express-async';\n\nconst app = express();\napp.get('/example-1', wrapAsync(async function example1(req, res, next) {\n  res.status(200).send({example: 1});\n}));\n\napp.get('/example-2', wrapAsync(async function example2(req, res) {\n  res.status(200).send({example: 2});\n}));\n```\n\n## Scripts\n\nRun using yarn run `\u003cscript\u003e` command.\n\n    clean       - Remove temporarily folders.\n    build       - Compile source files.\n    build:watch - Interactive watch mode, compile sources on change.\n    lint        - Lint source files.\n    lint:fix    - Lint source files and auto-fix.\n\n## Credits\n\nThis package has been inspired by [express-async-handler](https://github.com/Abazhenov/express-async-handler) but \nit has been totally rewrited in TypeScript.\n\n## License\n\nMIT © [Dimitri DO BAIRRO](https://github.com/rimiti/express-async/blob/master/LICENSE)\n\n[prod-dependencies-badge]: https://david-dm.org/rimiti/express-async/status.svg\n[prod-dependencies]: https://david-dm.org/rimiti/express-async\n[travis-badge]: https://travis-ci.org/rimiti/express-async.svg?branch=master\n[travis]:https://travis-ci.org/rimiti/express-async\n[license-badge]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square\n[license]: https://github.com/rimiti/express-async/blob/master/LICENSE\n[prs-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square\n[prs]: http://makeapullrequest.com\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frimiti%2Fexpress-async","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frimiti%2Fexpress-async","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frimiti%2Fexpress-async/lists"}