segmentio/oh-crap — pull request #1 by LinusU (2014-09-11 13:43:14+00:00)
Title: mimic standard behaviour more closely

Change the behaviour of crap so that it lets node.js deal with printing the error and exiting.

If backwards compatibility is desired, the following should do it.

```diff
...
-function crap(dir){
+function crap(dir, fn){
...
+ fn && process.once('uncaughtException', fn);
...
```