error-stack-parser

WebJar for error-stack-parser

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

error-stack-parser
Последняя версия

Последняя версия

2.0.6
Дата

Дата

Тип

Тип

jar
Описание

Описание

error-stack-parser
WebJar for error-stack-parser
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

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

Скачать error-stack-parser

Как подключить последнюю версию

<!-- 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"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : stackframe jar [1.1.1,2)

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
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