pretty-throw
v1.0.0
Published
Throw formatted errors.
Downloads
6
Readme
Pretty throw
Throw formatted errors.
Install
npm install pretty-throw
Usage
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.