exception-formatter

JSON →
library 2.1.2 ·javascript
verified Jun 4, 2026

An NPM package that pretty-prints JavaScript Error objects and stack traces with syntax highlighting, ANSI colors, or HTML output. Version 2.1.2 is stable with infrequent releases. It automatically highlights user code, strips base paths, and supports longjohn and streamline async stacks. Unlike alternative formatters, it offers automatic detection of project files and multiple output formats (ascii, ansi, html).