exceptionrocket

log exception smartly in try catch

Usage no npm install needed!

<script type="module">
  import exceptionrocket from 'https://cdn.skypack.dev/exceptionrocket';
</script>

README

const eRocket = require('exceptionRocket')

const apiCall = () => { try { fetch('https://youtube.com') } catch (e) { eRocket(apiCall) } }

in console

exception apiCall: () => { try { fetch('https://youtube.com') } catch (e) { eRocket(apiCall) } }