sindresorhus

sindresorhus/loud-rejection

Make unhandled promise rejections fail loudly instead of the default silent fail

JavaScript
282
16
MIT License

loud‑rejection is a tiny Node.js utility that globally watches for unhandled promise rejections, logs the error to stderr and forces the process to exit with a non‑zero code. It’s intended for top‑level scripts such as CLI tools, test runners, or server entry points where silent promise failures would be hard to spot, but not for reusable libraries. It works by installing an `unhandledRejection` listener (or via a simple `require('loud-rejection/register')`).

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of sindresorhus/loud-rejection

Account's avatar
when you want to fire an event no matter how a process exits.
Account's avatar
Node.js test runner that lets you develop with confidence.
Account's avatar
Full featured Promises/A+ implementation with exceptionally good performance
Account's avatar
takes json-cov output into stdin and POSTs to coveralls.io
Account's avatar
the Istanbul command line interface

Support the repos that depend on this repository

Top contributors

sindresorhus's profile
sindresorhus
37 contributions
jamestalmage's profile
jamestalmage
7 contributions
callumlocke's profile
callumlocke
3 contributions
BendingBender's profile
BendingBender
2 contributions
coreyfarrell's profile
coreyfarrell
1 contributions
DylanVann's profile
DylanVann
1 contributions
LinusU's profile
LinusU
1 contributions
Richienb's profile
Richienb
1 contributions
ntwb's profile
ntwb
1 contributions
timdp's profile
timdp
1 contributions

Recent events

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

No events yet