[READ-ONLY] Mirror of https://github.com/danielroe/errx. Zero dependency library to capture and parse stack traces in Node, Bun, Deno and more.
error stack-trace
0

Configure Feed

Select the types of activity you want to include in your feed.

133 4 2

Clone this repository

https://git.vm.fail/danielroe.dev/errx https://git.vm.fail/did:plc:36bt3stkskrwv5mic4qyo3rb
ssh://git@knot1.tangled.sh:2222/danielroe.dev/errx ssh://git@knot1.tangled.sh:2222/did:plc:36bt3stkskrwv5mic4qyo3rb

For self-hosted knots, clone URLs may differ based on your setup.


README.md

errx#

npm version npm downloads Github Actions Codecov

Zero dependency library to capture and parse stack traces in Node, Bun, Deno and more.

Usage#

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'
// }]

💻 Development#

  • Clone this repository
  • Enable Corepack using corepack enable
  • Install dependencies using pnpm install
  • Run interactive tests using pnpm dev

License#

Made with ❤️

Published under MIT License.