stacktrace-parser

WebJar for stacktrace-parser

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

stacktrace-parser
Last Version

Last Version

0.1.9
Release Date

Release Date

Type

Type

jar
Description

Description

stacktrace-parser
WebJar for stacktrace-parser
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/errwischt/stacktrace-parser

Download stacktrace-parser

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/stacktrace-parser/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>stacktrace-parser</artifactId>
    <version>0.1.9</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/stacktrace-parser/
implementation 'org.webjars.npm:stacktrace-parser:0.1.9'
// https://jarcasting.com/artifacts/org.webjars.npm/stacktrace-parser/
implementation ("org.webjars.npm:stacktrace-parser:0.1.9")
'org.webjars.npm:stacktrace-parser:jar:0.1.9'
<dependency org="org.webjars.npm" name="stacktrace-parser" rev="0.1.9">
  <artifact name="stacktrace-parser" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='stacktrace-parser', version='0.1.9')
)
libraryDependencies += "org.webjars.npm" % "stacktrace-parser" % "0.1.9"
[org.webjars.npm/stacktrace-parser "0.1.9"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : type-fest jar [0.7.1,0.8)

Project Modules

There are no modules declared in this project.

Build Status dependencies dev-dependencies

StackTrace-Parser

This parser parses a stack trace from any browser or Node.js and returns an array of hashes each representing a line.

The goal here is to support every browser even old Internet Explorer stack traces will work.

Install

npm install stacktrace-parser

Usage

import * as stackTraceParser from 'stacktrace-parser';

try {
  throw new Error('My error');
} catch(ex) {
  const stack = stackTraceParser.parse(ex.stack);
}

Every line contains five properties: lineNumber, methodName, arguments, file and column (if applicable).

TODOs

  • parse stack traces from other sources (Ruby, etc) (v0.3)

Contribution

If you want to contrib, then do you thing, write tests, run npm run test ensure that everything is green, commit and make the pull request. Or just write an issue, or let's talk.

Contributors

LICENSE

The MIT License (MIT)

Versions

Version
0.1.9