Zero dependency library to capture and parse stack traces in Node, Bun, Deno and more.
Zero dependency library to capture and parse stack traces in Node, Bun, Deno and more.
Install package:
# npm
npm install errx
# pnpm
pnpm install errx
import { captureRawStackTrace, captureStackTrace, parseRawStackTrace } from 'errx'
// returns raw string stack trace
captureRawStackTrace()
// returns parsed stack trace
captureStackTrace()
console.log(captureStackTrace())
// [{
// function: undefined,
// source: 'file:///code/unjs/errx/playground/index.js',
// line: '5',
// column: '13'
// }]
corepack enablepnpm installpnpm devMade with ❤️
Published under MIT License.
We use cookies
We use cookies to analyze traffic and improve your experience. You can accept or reject analytics cookies.