2.0.2 • Published 6 years ago

pruddy-error v2.0.2

Weekly downloads
5,004
License
BSD
Repository
github
Last release
6 years ago
This is a clone of the `prettify-error` module which was unpublished by the
author. All dependencies have been inlined to prevent future conflicts.

pruddy-error

Prettify given error objects for console outputs

npm.io

Install

$ npm install pruddy-error

Usage

var pruddy = require('pruddy-error');
var error = new Error('lorem ipsum');

console.error(pruddy(error) || error);

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

pruddy(error, {
  shift: 2  // Will start reading the stack from the third line.
})