GitXplorerGitXplorer
w

stack-formatted

public
4 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
9a25f0b1d16dc5d0bce501f8ac405c050854cd04

Updated example image.

wwalling committed 12 years ago
Unverified
5ff2cb833ad010e4140526915e4c2975b6a3d54f

Adding example image to readme file.

wwalling committed 12 years ago
Unverified
a7fc655af582b2417cf5d3d14f463667f0388a98

Adding graphical example for documentation.

wwalling committed 12 years ago
Unverified
3c323dd8fcdd5102e57b4a5c0f8fd4f8cd36692f

Initial commit with inspiration in a short hack at Node.JS meetup in Copenhagen.

wwalling committed 12 years ago

README

The README file for this repository.

stack-formatted

Beautifully formatted stack traces.

Install:

npm install stack-formatted

Usage:

require('stack-formatted');

console.log(new Error().stackFormatted);
// All error objects contain the stackFormatted property.

Example output:

Example of stack-formatted stack trace in the terminal.


We use stack-json to produce the nicely formatted output. You can also use trace to get long stack trace in asynchronous code (mainly for debugging):

require('stack-formatted');
require('trace'); // load it after this module

setTimeout(function() {
  try {
    explode;
  } catch (error) {
    console.log(error.stackFormatted);
  }
}, 100);