pruddy-error
Prettify given error object
Last updated 9 years ago by 3rdeden .
BSD · Repository · Bugs · Original npm · Tarball · package.json
$ npm install pruddy-error 
SYNC missed versions from official npm registry.
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

$ 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.
})

Current Tags

  • 2.0.2                                ...           latest (9 years ago)

6 Versions

  • 2.0.2                                ...           9 years ago
  • 2.0.1                                ...           9 years ago
  • 2.0.0                                ...           9 years ago
  • 1.0.2                                ...           10 years ago
  • 1.0.1                                ...           10 years ago
  • 1.0.0                                ...           11 years ago
Maintainers (1)
Downloads
Total 26
Today 0
This Week 3
This Month 15
Last Day 3
Last Week 1
Last Month 0
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE