{"id":18376773,"url":"https://github.com/hcodes/show-js-error","last_synced_at":"2025-10-12T03:17:41.181Z","repository":{"id":44773354,"uuid":"52717673","full_name":"hcodes/show-js-error","owner":"hcodes","description":" ⚠️ Show a message about a js error in any browser","archived":false,"fork":false,"pushed_at":"2025-01-03T08:52:57.000Z","size":1008,"stargazers_count":81,"open_issues_count":0,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-09-24T11:23:24.509Z","etag":null,"topics":["debugger","javascript","js-errors","vanilla-js"],"latest_commit_sha":null,"homepage":"http://hcodes.github.io/show-js-error/tests/index.html","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/hcodes.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-02-28T11:24:02.000Z","updated_at":"2025-04-14T15:18:28.000Z","dependencies_parsed_at":"2024-11-06T00:27:29.343Z","dependency_job_id":"53de8c30-9ad4-40db-8601-2a5168e9b720","html_url":"https://github.com/hcodes/show-js-error","commit_stats":{"total_commits":152,"total_committers":4,"mean_commits":38.0,"dds":0.5657894736842105,"last_synced_commit":"0fd6529848c0cab358dd506cc6a598d90a18147e"},"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/hcodes/show-js-error","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hcodes%2Fshow-js-error","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hcodes%2Fshow-js-error/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hcodes%2Fshow-js-error/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hcodes%2Fshow-js-error/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hcodes","download_url":"https://codeload.github.com/hcodes/show-js-error/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hcodes%2Fshow-js-error/sbom","scorecard":{"id":458699,"data":{"date":"2025-08-11","repo":{"name":"github.com/hcodes/show-js-error","commit":"451a0457059f00dd693436c65099dea0e0bcf603"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.1,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/28 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:28","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:29","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/nodejs.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":1,"reason":"dependency not pinned by hash detected -- score normalized to 1","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/hcodes/show-js-error/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/hcodes/show-js-error/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/hcodes/show-js-error/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/hcodes/show-js-error/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/hcodes/show-js-error/nodejs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/hcodes/show-js-error/nodejs.yml/master?enable=pin","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-xffm-g5w8-qvg7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T10:29:48.997Z","repository_id":44773354,"created_at":"2025-08-19T10:29:48.997Z","updated_at":"2025-08-19T10:29:48.997Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010175,"owners_count":26084691,"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-10-12T02:00:06.719Z","response_time":53,"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":["debugger","javascript","js-errors","vanilla-js"],"created_at":"2024-11-06T00:24:43.068Z","updated_at":"2025-10-12T03:17:41.150Z","avatar_url":"https://github.com/hcodes.png","language":"TypeScript","readme":"⚠️ Show JS Error\n=============\n\n[![NPM version](https://img.shields.io/npm/v/show-js-error.svg)](https://www.npmjs.com/package/show-js-error)\n[![NPM Downloads](https://img.shields.io/npm/dm/show-js-error.svg?style=flat)](https://www.npmjs.org/package/show-js-error)\n[![install size](https://packagephobia.com/badge?p=show-js-error)](https://packagephobia.com/result?p=show-js-error)\n\nShows a message when an js error occurs in a browser.\u003cbr\u003e\nUseful for developing and testing your site on mobile phones, smart TV, tablets and desktop.\n\n## [Demo](http://hcodes.github.io/show-js-error/tests/index.html)\nShortly:\u003cbr\u003e![Shortly](https://raw.githubusercontent.com/hcodes/show-js-error/master/images/simple.png?)\u003cbr\u003e\u003cbr\u003e\nDetail:\u003cbr\u003e![Detail](https://raw.githubusercontent.com/hcodes/show-js-error/master/images/detailed.png?)\n\n## Features\n- Support:\n    - JavaScript errors\n    - Unhandled rejections\n    - CSP errors\n- Small size\n- No dependencies\n- Short and detailed mode\n- UI\n- Integration with Github\n\n## Browsers\n- Chrome\n- Mozilla Firefox\n- Apple Safari\n- Microsoft Edge\n- Internet Explorer \u003e= 11\n\n## Install\n```\nnpm install show-js-error --save-dev\n```\n\n## Using\n\n### Browser\nWith default settings:\n```html\n\u003cscript src=\"https://unpkg.com/show-js-error/dist/show-js-error.js\"\u003e\u003c/script\u003e\n```\nor with own settings:\n```html\n\u003cscript src=\"https://unpkg.com/show-js-error/dist/show-js-error.js\"\u003e\u003c/script\u003e\n```\n```js\nwindow.showJSError.setSettings({\n    reportUrl: 'https://github.com/hcodes/show-js-error/issues/new?title={title}\u0026body={body}'\n});\n```\n\n### ES6 or TypeScript\nWith default settings:\n```js\nimport 'show-js-error';\n```\nor with own settings:\n```js\nimport { showJSError } from 'show-js-error';\nshowJSError.setSettings({\n    reportUrl: 'https://github.com/hcodes/show-js-error/issues/new?title={title}\u0026body={body}'\n});\n\nshowJSError.show(new Error('error'));\n```\n\n## API\n\n### .setSettings(settings)\nSet settings for error panel.\n\n```js\nshowJSError.setSettings({\n    reportUrl: 'https://github.com/hcodes/show-js-error/issues/new?title={title}\u0026body={body}', // Default: \"\"\n    templateDetailedMessage: 'My title\\n{message}',\n    size: 'big' // for smart TV\n})\n```\n\n### .clear()\nClear errors for error panel.\n\n### .show(error?: Error | object | string)\nShow error panel.\n\n```js\nshowJSError.show();\n```\n\nShow error panel with transmitted error.\n```js\nshowJSError.show({\n    title: 'My title',\n    message: 'My message',\n    filename: 'My filename',\n    stack: 'My stack',\n    lineno: 100,\n    colno: 3\n});\n\n// or\nshowJSError.show('My error');\n\n// or\nshowJSError.show(new Error('My error'));\n```\n\n### .hide()\nHide error panel.\n\n### .toggleView()\nToggle detailed info about current error.\n\n### .destruct()\nDetach error panel from page, remove global event listeners.\n\n## [Examples](./tests)\n- [Simple](http://hcodes.github.io/show-js-error/tests/many.html)\n- [Advanced](http://hcodes.github.io/show-js-error/tests/index.html)\n\n## [License](https://github.com/hcodes/show-js-error/blob/master/LICENSE)\nMIT License\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhcodes%2Fshow-js-error","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhcodes%2Fshow-js-error","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhcodes%2Fshow-js-error/lists"}