Pear uncaught crash handler
npm install pear-crasher> Pear uncaught crash handler
Sets up unhandled rejection and unhandled exception crash handlers.
* name is entered into logs and determines name of log file.
* dir path to store log files. Typically the pear-constants SWAP.
* write - default false. Logs are always printed, if write is true logs are also saved to dir.
Apache-2.0