{"id":18821392,"url":"https://github.com/borderless/fetch-error-handler","last_synced_at":"2026-01-29T03:07:53.521Z","repository":{"id":46897552,"uuid":"263819673","full_name":"borderless/fetch-error-handler","owner":"borderless","description":"Error handler for fetch responses, e.g. Cloudflare Workers","archived":false,"fork":false,"pushed_at":"2023-12-12T06:28:23.000Z","size":895,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-29T16:31:44.257Z","etag":null,"topics":["cloudflare-workers","error-handler","error-handling","fetch","router"],"latest_commit_sha":null,"homepage":"","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/borderless.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-05-14T05:02:15.000Z","updated_at":"2021-10-10T02:53:45.000Z","dependencies_parsed_at":"2023-12-27T00:22:06.461Z","dependency_job_id":"bb958ef6-56df-4a1c-94bd-810940d014a9","html_url":"https://github.com/borderless/fetch-error-handler","commit_stats":{"total_commits":17,"total_committers":2,"mean_commits":8.5,"dds":"0.47058823529411764","last_synced_commit":"6dd69496d751286d6c70358903996fc250099690"},"previous_names":["borderlesslabs/fetch-error-handler"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/borderless/fetch-error-handler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borderless%2Ffetch-error-handler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borderless%2Ffetch-error-handler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borderless%2Ffetch-error-handler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borderless%2Ffetch-error-handler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/borderless","download_url":"https://codeload.github.com/borderless/fetch-error-handler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borderless%2Ffetch-error-handler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28861690,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T22:56:21.783Z","status":"online","status_checked_at":"2026-01-29T02:00:06.714Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cloudflare-workers","error-handler","error-handling","fetch","router"],"created_at":"2024-11-08T00:40:23.922Z","updated_at":"2026-01-29T03:07:53.500Z","avatar_url":"https://github.com/borderless.png","language":"TypeScript","readme":"# Fetch Error Handler\n\n[![NPM version][npm-image]][npm-url]\n[![NPM downloads][downloads-image]][downloads-url]\n[![Build status][travis-image]][travis-url]\n[![Test coverage][coveralls-image]][coveralls-url]\n\n\u003e Error handler for [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) responses, e.g. Cloudflare Workers.\n\n## Installation\n\n```sh\nnpm install @borderless/fetch-error-handler --save\n```\n\n## Usage\n\n```js\nimport { compose } from \"throwback\";\nimport { errorHandler } from \"@borderless/fetch-error-handler\";\nimport { finalHandler } from \"@borderless/fetch-final-handler\";\n\nconst app = compose([get(), post()]);\nconst req = new Request(\"/\");\n\nconst res = await app(req, finalHandler()).catch(\n  errorHandler(req, { production: true })\n);\n```\n\n## TypeScript\n\nThis project is written using [TypeScript](https://github.com/Microsoft/TypeScript) and publishes the definitions directly to NPM.\n\n## License\n\nMIT\n\n[npm-image]: https://img.shields.io/npm/v/@borderless/fetch-error-handler.svg?style=flat\n[npm-url]: https://npmjs.org/package/@borderless/fetch-error-handler\n[downloads-image]: https://img.shields.io/npm/dm/@borderless/fetch-error-handler.svg?style=flat\n[downloads-url]: https://npmjs.org/package/@borderless/fetch-error-handler\n[travis-image]: https://img.shields.io/travis/BorderlessLabs/fetch-error-handler.svg?style=flat\n[travis-url]: https://travis-ci.org/BorderlessLabs/fetch-error-handler\n[coveralls-image]: https://img.shields.io/coveralls/BorderlessLabs/fetch-error-handler.svg?style=flat\n[coveralls-url]: https://coveralls.io/r/BorderlessLabs/fetch-error-handler?branch=master\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborderless%2Ffetch-error-handler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fborderless%2Ffetch-error-handler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborderless%2Ffetch-error-handler/lists"}