catch-my-exceptions

Catch uncaughtException in node and send to Slack

Usage no npm install needed!

<script type="module">
  import catchMyExceptions from 'https://cdn.skypack.dev/catch-my-exceptions';
</script>

README

catch-my-exceptions

Catch node.js exceptions and send a detailed trace to a Slack webhook

var catchMyExceptions = require('catch-my-exceptions')

catchMyExceptions(webbookUri, opts)

Call catchMyExceptions with your Slack webhookUri and the appropriate options at the initialization of your app.

Opts:

quitOnException - default true - whether to process.exit(1) upon an exception

slackChannel - default #bugs

slackUsername - default webhookbot