1.0.0 • Published 6 years ago
pretty-throw v1.0.0
Pretty throw 
Throw formatted errors.
Install
npm install pretty-throwUsage
const prettyThrow = require("pretty-throw");
prettyThrow(new Error("Test error."));Output

API
prettyThrow(error, options?)
error
Type: Error
The error to be thrown.
options
Type: object
exit
Type: boolean\
Default: true
Exit the process after displaying the error.
