Gotta Catch Em All!
For when your pokemon is being unruly and you have no idea why. In other words, it catches unhandled rejections (usually caused by using ES6 Promises) in Node v6+.
Installation
npm install --save-dev gotta-catch-em-all
Usage
// Start logging unhandled rejections Promise // Throw a fugitive error // Logs all unhandled rejections to the console// Example:// Unhandled Rejection: Error: I shall not get uncaught!// ...// stack trace output// ....
Note: Remember to only call "gottaReleaseEmAll" after the async calls are done. Calling "gottaReleaseEmAll" is entirely optional, if left uncalled, unhandled rejections will be logged to the console when node exits.