Formats a stack with colors
MIT License
Formats a stack with colors
This module must be required as the first thing before everything else. It will format your stack trace with colors and will also print the previous stack.
Be warned this uses trycatch
so it will enable domains
and monkey patch everything to implement long stack
traces.
require("format-stack").set({
traces: 'short' // 'long' works too, maybe.. ;)
});
// Any thrown error will now have a pretty printed stack
// trace.
npm install format-stack
npm test