Shows funny excuses in console on every error (Node & Browser)
npm install funny-error-excuseA lightweight JavaScript npm package that displays funny excuses in the console whenever an error occurs — works in Node.js and Browsers automatically.
Perfect for developers who want debugging with a smile.
✨ Features
✅ Works in Node.js (terminal)
✅ Works in Browser (console)
✅ Supports sync & async errors
✅ Zero configuration
✅ No ES modules headache
✅ Works with Vanilla JS, MERN, React, Vite, Webpack
📦 Installation
npm install funny-error-excuse
🚀 Usage
🟢 Node.js / Backend
require("funny-error-excuse");
// trigger an error
undefinedVariable + 1;
➡️ Whenever an error happens, a random funny excuse will be logged in the terminal.
🌐 Browser / Frontend
If you are using a bundler (React, Vite, Webpack):
import "funny-error-excuse";
That’s it.
Errors will automatically show funny excuses in the browser console.
🌍 Direct Browser Testing (No Bundler)
Open DevTools → Console 😄
🤝 Use Cases
Debugging without frustration
Developer tools
Fun logging in side projects
Developer mood booster 😄
📄 License
MIT License
❤️ Author
Made with ☕ and bugs by Piyush.