1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
```
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

## Install
``bash
$ npm install pruddy-error
``
## Usage
```js
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:
```js
pruddy(error, 2) // Will start reading the stack from the third line.
```
|