For error reporting, I would like to insert a try-catch wrapper around the code of every function I have.
So basically I want to replace
function foo(ar
I needed to go fortify some code, so I wrote a function called fortify and put it in an NPM module. It's a work in progress, but it should help.
fortify
https://github.com/infinitered/over-armour
Bonus: it works with async functions. Feedback welcome