stack-formatted
Beautifully formatted stack traces.
Install:
npm install stack-formatted
Usage:
; console;// 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):
;; // load it after this module ;