File: README.md

package info (click to toggle)
node-url-parse 1.2.0-2%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 392 kB
  • sloc: javascript: 1,682; makefile: 7
file content (31 lines) | stat: -rw-r--r-- 584 bytes parent folder | download
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

![](https://i.cloudup.com/Vt6PAM3yDA.png)

## 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.
```