Turns boring errors into funny desi explanations š
npm install error-bhaierror-bhai is a CLI tool that:
bash
npm install -g error-bhai
`
$3
`bash
npx error-bhai
`
---
š ļø Usage
$3
`bash
error-bhai
`
Output:
`text
ā Chai peeke wapas aao
`
$3
`bash
error-bhai "TypeError: Cannot read properties of undefined"
`
Output:
`text
š Bhai tu undefined se umeed kar raha hai
`
$3
`bash
error-bhai "Cannot read property 'x' of null"
`
Output:
`text
š¶ Null hai bhai, khaali hai
`
---
š§ Errors it understands
- undefined
- null
- not a function
- Unknown errors (generic roast š)
More coming soon š
---
š¤ Why error-bhai?
ā Normal errors:
`text
TypeError: Cannot read properties of undefined
`
ā
error-bhai:
`text
š Bhai tu undefined se umeed kar raha hai
`
Because debugging without laughter is pain.
---
š¦ Fun real-world usage
`bash
git commit -m "$(error-bhai)"
``