{"library":"youch-core","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"0.3.3","tags":["javascript","pretty-print","pretty-error","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install youch-core","imports":["import { ErrorParser } from 'youch-core'","import { ParsedError } from 'youch-core'","import { StackFrame } from 'youch-core'"]},{"cmd":"yarn add youch-core","imports":[]},{"cmd":"pnpm add youch-core","imports":[]}],"homepage":null,"github":"https://github.com/poppinss/youch-core","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/youch-core","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/youch-core/compatibility"}}