parse-captured-stack
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

Parse stack traces

Wrappers around established stack-parsing libraries.

Installation

npm i parse-captured-stack

Usage

Capture stacks

  • Stacks are captured in the runtime they occur in, producing a CapturedStack object. Use the function @jawis/jab#captureStack to do this.

Parse general errors

Stacks captured in unknown location can be parsed for presentation.

  • parseTrace

Parse browser errors

They can be source mapped, if they are presented in the same browser, as they are captured. Because then the source map will be cached in the browser and it will match the source code.

  • parseTraceAndSourceMap

Known issues

Related work

The libraries used for parsing stacks:

License

MIT

Package Sidebar

Install

npm i parse-captured-stack

Weekly Downloads

7

Version

0.0.3

License

MIT

Unpacked Size

9.16 kB

Total Files

8

Last publish

Collaborators

  • jawis