
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
show-js-error
Advanced tools
Shows a message when an js error occurs in a browser.
Useful for developing and testing your site on mobile phones, tablets and desktop.
Shortly:
Detail:
Any.
npm install show-js-error --save-dev
<link rel="stylesheet" href="./node_modules/show-js-error/dist/show-js-error.css" />
<script src="./node_modules/show-js-error/dist/show-js-error.js"></script>
or
<link rel="stylesheet" href="./node_modules/show-js-error/dist/show-js-error.css" />
<script src="./node_modules/show-js-error/dist/show-js-error.custom.js"></script>
<script>
showJSError.init({
title: 'JavaScript error',
userAgent: navigator.userAgent,
sendText: 'Send 🐛',
sendUrl: 'https://github.com/hcodes/show-js-error/issues/new?title={title}&body={body}'
});
</script>
showJSError.show({
title: 'My title',
message: 'My message',
filename: 'My filename',
stack: 'My stack',
lineno: 100,
colno: 3,
userAgent: 'OS X Yosemite, Safari 8'
});
// or
showJSError.show('Hello error!');
// or
var err = new Error();
showJSError.show(err);
MIT License
FAQs
Show a message about a js error in any browser
The npm package show-js-error receives a total of 4,172 weekly downloads. As such, show-js-error popularity was classified as popular.
We found that show-js-error demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.