1.0.0 • Published 6 years ago

@c0b41/prettify-error v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

prettify-error

Prettify given error objects for console outputs

npm.io

Install

$ npm install prettify-error

Usage

var prettify = require('prettify-error')
var err = new Error('lorem ipsum')

console.error(prettify(error) || error)

If you'd like to skip some lines from the stack:

prettify(error, 2) // Will start reading the stack from the third line.