{"id":20031904,"url":"https://github.com/wtnabe/browser-error-conditional-forwarder","last_synced_at":"2026-05-11T08:06:22.681Z","repository":{"id":66523983,"uuid":"100679487","full_name":"wtnabe/browser-error-conditional-forwarder","owner":"wtnabe","description":"Simple Browser Error Forwarding Framework with Node.js and Browserify","archived":false,"fork":false,"pushed_at":"2017-08-19T07:25:01.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T05:27:56.401Z","etag":null,"topics":["browser","error","forward"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/wtnabe.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-18T06:17:54.000Z","updated_at":"2017-08-19T07:18:01.000Z","dependencies_parsed_at":"2023-03-10T20:45:14.722Z","dependency_job_id":null,"html_url":"https://github.com/wtnabe/browser-error-conditional-forwarder","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wtnabe/browser-error-conditional-forwarder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtnabe%2Fbrowser-error-conditional-forwarder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtnabe%2Fbrowser-error-conditional-forwarder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtnabe%2Fbrowser-error-conditional-forwarder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtnabe%2Fbrowser-error-conditional-forwarder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wtnabe","download_url":"https://codeload.github.com/wtnabe/browser-error-conditional-forwarder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtnabe%2Fbrowser-error-conditional-forwarder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286079811,"owners_count":27282121,"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","status":"online","status_checked_at":"2025-11-26T02:00:06.075Z","response_time":193,"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":["browser","error","forward"],"created_at":"2024-11-13T09:35:13.346Z","updated_at":"2025-11-26T08:03:12.342Z","avatar_url":"https://github.com/wtnabe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"BrowserErrorConditionalForwarder\n================================\n\nSimple Browser Error Forwarding Framework with Node.js and Browserify\n\nFeatures\n========\n\n * Everything DI\n * Forwarder\n * Ignore Filter\n * Force Forward Filter\n\nUsage\n=====\n\n```javascript\nimport BrowserErrorConditionalForwarder from 'browser-error-conditional-forwarder'\n\nBrowserErrorConditionalForwarder.registerElement(\n  window,\n  {\n    forwarder: BrowserErrorAbstractForwarder,\n    ignoreFilters: [\n      BrowserErrorAbstractIgnoreFilter\n    ],\n    forceForwardFilters: [\n      BrowserErrorAbstractForceForwardFilter\n    ]\n  })\n```\n\nForwarder\n----------\n\n * a class with `forward()` method\n * return forward status\n\nfor example `ga()` for Google Analytics tracker\n\n```javascript\nclass BrowserErrorForwarder {\n  forward(message, source, lineno, colno, error = undefined) {\n    return ga('send', 'exception', ...)\n  }\n}\n```\n\nFilter\n------\n\n * a class with `filter()` method\n * return true if filter matches\n\nfor example very early and unclear error\n\n```javascript\nclass BrowserErrorIgnoreUnclearerrorFilter {\n  filter(message, source, lineno, colno, error = undefined) {\n    return message == 'Script error.' \u0026\u0026 lineno == 0 \u0026\u0026 colno == 0\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwtnabe%2Fbrowser-error-conditional-forwarder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwtnabe%2Fbrowser-error-conditional-forwarder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwtnabe%2Fbrowser-error-conditional-forwarder/lists"}