1.0.0 • Published 4 years ago

pretty-throw v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

Pretty throw Travis CI Build Status

Throw formatted errors.

NPM Badge

Install

npm install pretty-throw

Usage

const prettyThrow = require("pretty-throw");
prettyThrow(new Error("Test error."));

Output

Example 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.