{"id":16121828,"url":"https://github.com/eseom/hapi-es7-async-handler","last_synced_at":"2025-03-18T11:30:34.619Z","repository":{"id":57260896,"uuid":"82139435","full_name":"eseom/hapi-es7-async-handler","owner":"eseom","description":"support es7 async enabled routing handler","archived":false,"fork":false,"pushed_at":"2018-02-10T13:20:18.000Z","size":20,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T09:15:06.779Z","etag":null,"topics":["async","async-handler-support","es7","hapi","plugin","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eseom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-16T04:33:55.000Z","updated_at":"2018-02-13T15:02:47.000Z","dependencies_parsed_at":"2022-08-31T16:12:17.944Z","dependency_job_id":null,"html_url":"https://github.com/eseom/hapi-es7-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/eseom%2Fhapi-es7-async-handler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eseom%2Fhapi-es7-async-handler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eseom%2Fhapi-es7-async-handler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eseom%2Fhapi-es7-async-handler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eseom","download_url":"https://codeload.github.com/eseom/hapi-es7-async-handler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243925478,"owners_count":20369906,"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","async-handler-support","es7","hapi","plugin","typescript"],"created_at":"2024-10-09T21:08:19.005Z","updated_at":"2025-03-18T11:30:34.255Z","avatar_url":"https://github.com/eseom.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NOTE\n\nNote: This library is no longer needed since hapi17. This feature has been included as standard since hapi 17. You can use this plugin up to version 16 hapijs.\n\nSee the link below.\n  \nhttps://github.com/hapijs/hapi/issues/3429\n\n# hapi-es7-async-handler\n\n\u003e async handler support for hapijs apps\n\n[![npm version][npm-badge]][npm-url]\n\n\nYou can use this plugin to add async handler function to your hapi projects.\n\n# requiements\nYou need es7 supported javascript development environment or use Typescript\n\n\n# Usage\n\nExample:\n```js\nconst server = new Hapi.server()\n\nconst plugins = [\n  ...\n  {\n    register: require('hapi-es7-async-handler'),\n  },\n  ...\n];\n\nserver.register(plugins, (err) =\u003e {\n  ...\n})\nserver.route({\n  path: '/',\n  method: 'get',\n  handler: async (request, reply) =\u003e {\n    ...\n    const result = await yourAsyncJob(); // the async job might be returning Promise object\n    reply(result);\n  }\n});\n```\n\n[npm-url]: https://www.npmjs.com/package/hapi-es7-async-handler\n[npm-badge]: https://img.shields.io/npm/v/hapi-es7-async-handler.svg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feseom%2Fhapi-es7-async-handler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feseom%2Fhapi-es7-async-handler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feseom%2Fhapi-es7-async-handler/lists"}