errx
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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/danielroe/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.

Readme

Keywords

none

Package Sidebar

Install

npm i errx

Weekly Downloads

540,729

Version

0.1.0

License

MIT

Unpacked Size

5.61 kB

Total Files

5

Last publish

Collaborators

  • danielroe