ehmicky

ehmicky/wrap-error-message

Properly wrap an error's message.

JavaScript
4
0
MIT License

`wrap-error-message` is a tiny utility that cleanly appends or prepends additional text to an error’s message, handling edge‑cases such as invalid error objects, whitespace trimming, and updating the stack trace. It’s aimed at Node.js (≥ 18.18) and browser developers who need a reliable way to modify error messages without losing error type information.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of ehmicky/wrap-error-message

Account's avatar
Normalize exceptions/errors
Account's avatar
Properly update an error's message
Account's avatar
Automated development tasks for my own projects
Account's avatar
ESLint configuration for my own projects
Account's avatar
Prettier configuration for my own projects
Account's avatar
🤖 Repeat tests. Repeat tests. Repeat tests.

Support the repos that depend on this repository

Top contributors

ehmicky's profile
ehmicky
326 contributions
dependabot[bot]'s profile
dependabot[bot]
19 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet