
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
js-error-notifier
Advanced tools
A TypeScript library for displaying error pop-ups when console errors or unhandled exceptions occur.
A TypeScript library for displaying error pop-ups when console errors or unhandled exceptions occur. This is useful for testing and debugging applications by ensuring that errors are visually noticeable.
To use this library, first clone the repository or download the source code. Then install TypeScript if you haven't already:
npm i js-error-notifier
import { errorNotifier } from 'js-error-notifier';
// Enable error notifications
errorNotifier.enable();
The Index class overrides console.error and listens for window-level errors and unhandled promise rejections.
When an error occurs, a pop-up notification appears in the bottom-right corner of the screen, displaying the error message.
The notification disappears after 5 seconds.
Here's a simple example of how to use the library in your project:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Error Notifier Example</title>
</head>
<body>
<script src="dist/Index.js"></script>
<script>
// Import and enable the error notifier
errorNotifier.enable();
// Example errors
console.error("This is a test error!");
</script>
</body>
</html>
The current version of the library has a fixed style for error pop-ups.
Future updates may include customizable styles, positions, and more.
This library is open-source and distributed under the MIT License.
FAQs
A TypeScript library for displaying error pop-ups when console errors or unhandled exceptions occur.
We found that js-error-notifier demonstrated a not healthy version release cadence and project activity because the last version was released 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.