StackTracey: Stack Trace Parser & Pretty Printer
JSON →StackTracey is a robust JavaScript library designed for parsing call stacks, reading source code, and generating clean, filtered, and pretty-printed output. Currently at version 2.2.0, it targets both Node.js and browser environments, supporting cross-platform compatibility across various operating systems like Windows and *nix. The library differentiates itself with full sourcemap support, the ability to fetch source text for call locations (leveraging `get-source`), and mechanisms for ad-hoc exclusion of irrelevant stack frames (e.g., library calls or user-defined exclusions via `// @hide` markers). It provides both synchronous and asynchronous interfaces for accessing source code, with asynchronous being the preferred method for browser environments to avoid blocking the main thread. It also extracts useful information from `SyntaxError` instances, making it valuable for debugging and enhanced error reporting in development tools and logging solutions.
Traffic · last 30 days ↓60% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇮 Finland · 🇫🇷 France