error-stack-parser

WebJar for error-stack-parser

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

error-stack-parser
Last Version

Last Version

2.0.6
Release Date

Release Date

Type

Type

jar
Description

Description

error-stack-parser
WebJar for error-stack-parser
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/stacktracejs/error-stack-parser

Download error-stack-parser

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : stackframe jar [1.1.1,2)

Project Modules

There are no modules declared in this project.

error-stack-parser.js - Extract meaning from JS Errors

Build Status Coverage Status GitHub license size with dependencies gzip size module format code of conduct jsDelivr Hits

Simple, cross-browser Error parser. This library parses and extracts function names, URLs, line numbers, and column numbers from the given Error's stack as an Array of StackFrames.

Once you have parsed out StackFrames, you can do much more interesting things. See stacktrace-gps.

Note that in IE9 and earlier, Error objects don't have enough information to extract much of anything. In IE 10, Errors are given a stack once they're thrown.

Browser Support

Sauce Test Status

Usage

ErrorStackParser.parse(new Error('BOOM'));

=> [
        StackFrame({functionName: 'foo', args: [], fileName: 'path/to/file.js', lineNumber: 35, columnNumber: 79, isNative: false, isEval: false}),
        StackFrame({functionName: 'Bar', fileName: 'https://cdn.somewherefast.com/utils.min.js', lineNumber: 1, columnNumber: 832, isNative: false, isEval: false, isConstructor: true}),
        StackFrame(... and so on ...)
   ]

Installation

npm install error-stack-parser
bower install error-stack-parser
https://raw.githubusercontent.com/stacktracejs/error-stack-parser/master/dist/error-stack-parser.min.js

Contributing

Want to be listed as a Contributor? Start with the Contributing Guide!

org.webjars.npm

stacktrace.js

Generate, parse, and enhance JavaScript stack traces

Versions

Version
2.0.6
2.0.4
2.0.2
2.0.1
2.0.0
1.3.6
1.3.5
1.3.3
1.2.3