tamil-errors
v1.0.0
Published
Tamil meme dialogues for your worst dev errors.
Maintainers
Readme
tamil-errors 🎬
Tamil meme dialogues for your worst dev errors.
Because crying in English is too mainstream.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎬 "Dei... avan sethutanda..."
💡 Fatal crash or TypeError — enna nadanthuchu nu theriyala
❌ TypeError: Cannot read properties of null (reading 'name')
at Object.<anonymous> (app.js:12:15)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━Install
npm install tamil-errorsUsage
Mode 1 — Auto-patch (just require it once)
Add this as the first line of your app. Every uncaught error and unhandled rejection gets the Tamil treatment automatically.
require('tamil-errors');
// your app below
const express = require('express');
// ...That's it. No other changes needed.
Mode 2 — Wrap a function
const { wrap } = require('tamil-errors');
const riskyFunction = wrap(function () {
return undeclaredVar + 1; // ReferenceError incoming
});
riskyFunction();
// 🎬 "Neengalam yaaru da.. how do I tell you.."Works with async functions too:
const fetchData = wrap(async function () {
const res = await fetch('https://this-does-not-exist.dev');
return res.json();
});
fetchData();
// 🎬 "Innumada engala nambitu irruka?"Mode 3 — Manual (your own try/catch)
const { tamilError } = require('tamil-errors');
try {
const f = () => f();
f();
} catch (err) {
tamilError(err);
// 🎬 "Vantha, suttan, setha, repeat uh..."
}The Dialogues
| Error | Tamil Dialogue |
|-------|---------------|
| ReferenceError | Neengalam yaaru da.. how do I tell you.. |
| UnhandledPromiseRejection | Innumada engala nambitu irruka? |
| RangeError: call stack | Vantha, suttan, setha, repeat uh... |
| Merge Conflict | Namala emmathiputainga chithapa... amanda maganae |
| TypeError / Fatal Crash | Dei... avan sethutanda... |
| MODULE_NOT_FOUND / 404 | Ohh ivuraa.. enga innum kanomey nu pathen... |
Why?
Because Cannot read properties of undefined at 2am deserves more than a stack trace.
Tamil devs unite. 🤝
TypeScript
Full type support included. No extra setup needed.
import { wrap, tamilError } from 'tamil-errors';License
MIT — use it, fork it, add your own dialogues.
Built with love and mild frustration somewhere in Coimbatore. 🌴
