{"id":13800632,"url":"https://github.com/rturk/koa-error-slack","last_synced_at":"2025-04-12T01:21:27.920Z","repository":{"id":71333455,"uuid":"60785501","full_name":"rturk/koa-error-slack","owner":"rturk","description":"Send Koa errors to Slack","archived":false,"fork":false,"pushed_at":"2017-08-24T01:14:12.000Z","size":7,"stargazers_count":11,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T22:36:48.313Z","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/rturk.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":"2016-06-09T15:28:24.000Z","updated_at":"2023-02-02T09:11:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"5aa92791-a022-4a1d-833a-f72b920031db","html_url":"https://github.com/rturk/koa-error-slack","commit_stats":{"total_commits":7,"total_committers":4,"mean_commits":1.75,"dds":0.5714285714285714,"last_synced_commit":"758ac01fc949d61893876bba5bf56c101a054b12"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rturk%2Fkoa-error-slack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rturk%2Fkoa-error-slack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rturk%2Fkoa-error-slack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rturk%2Fkoa-error-slack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rturk","download_url":"https://codeload.github.com/rturk/koa-error-slack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248501855,"owners_count":21114684,"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-08-04T00:01:14.562Z","updated_at":"2025-04-12T01:21:27.900Z","avatar_url":"https://github.com/rturk.png","language":"JavaScript","funding_links":[],"categories":["仓库"],"sub_categories":["中间件"],"readme":"# koa-error-slack\nThis Middleware detects errors in Koa Servers and sends messages to a Slack (via webhook).\n\n## How it works\nThe Middleware will listen to errors thrown from downstream components using try \u0026 catch. Once an error is detected a message containing error detail as well other relevant information (context, request and whenever possible response information) will be published to your Slack channel.\n\nThe Middleware code is lightweight and is intended to be used in production environments. Slack is only instantiated/called when an error is detected.\n\nPlease note that this middleware will solely catch errors from downstream components, so in order to catch relevant errors it must be one of the first middleware installed the Koa initialization stack.\n\n\n## Installation\n\n```js\n$ npm install koa-error-slack --save\n```\n\n## Usage\n```js\nimport errorToSlack from 'koa-error-slack';\n\nconst app = new Koa();\napp.use(errorToSlack(\"https://hooks.slack.com/services/my-webhook-channel\");\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frturk%2Fkoa-error-slack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frturk%2Fkoa-error-slack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frturk%2Fkoa-error-slack/lists"}