Youch Core Error Parser
JSON →youch-core is a specialized JavaScript/TypeScript library designed to parse `Error` instances into a structured collection of detailed stack frames. It functions as the core error parsing engine utilized by the `youch` package, which is responsible for rendering user-friendly error pages in web applications and formatted output in terminal environments. This library is considered low-level, intended for developers who need to build custom error display solutions while leveraging `youch-core`'s robust error introspection capabilities, rather than being a direct-use package for most applications. It provides granular information for each stack frame, including the filename, line number, column number, and a snippet of the relevant source code, along with flags indicating if a frame is related to `node_modules` or is a native function. The current stable version is `0.3.3`, reflecting an active development cadence with several minor releases and dependency updates throughout the past year, indicating ongoing maintenance and improvement. A significant feature is its support for custom source code loaders, enabling integration into diverse JavaScript runtime environments like Deno or Bun where standard Node.js `fs` module access might be unavailable or unsuitable for retrieving source files. It explicitly targets and supports modern Node.js versions (v18 and newer) and includes comprehensive TypeScript type definitions, ensuring a smooth and type-safe development experience for TypeScript users building custom error handling utilities.
Traffic · last 30 days ↓25% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France