stack-formatted

0.1.0 • Public • Published

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.

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);

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    1

Package Sidebar

Install

npm i stack-formatted

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • walling