All Projects → stacktracejs → Error Stack Parser

stacktracejs / Error Stack Parser

Licence: mit
Extract meaning from JS Errors

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Error Stack Parser

apollo-error-converter
Global Apollo Server Error handling made easy. Remove verbose and repetitive resolver / data source Error handling. Automatic Error catching, logging, and conversion to ApolloErrors.
Stars: ✭ 16 (-94.29%)
Mutual labels:  error-handling
rust-error-handle
detail rust error handle
Stars: ✭ 47 (-83.21%)
Mutual labels:  error-handling
bugsnag-wordpress
Bugsnag error monitoring for WordPress sites
Stars: ✭ 20 (-92.86%)
Mutual labels:  error-handling
moko-errors
Automated exceptions handler for mobile (android & ios) Kotlin Multiplatform development.
Stars: ✭ 45 (-83.93%)
Mutual labels:  error-handling
ErrorHandler
This is a library for Google Apps Script projects. It provides methods to perform an Exponential backoff logic whenever it is needed and rewrite error objects before sending them to Stackdriver Logging.
Stars: ✭ 14 (-95%)
Mutual labels:  error-handling
domain-browser
Node's domain module for the web browser
Stars: ✭ 30 (-89.29%)
Mutual labels:  error-handling
gommon
A collection of common util libraries for Go
Stars: ✭ 26 (-90.71%)
Mutual labels:  error-handling
Fluentresults
A generalised Result object implementation for .NET/C#
Stars: ✭ 266 (-5%)
Mutual labels:  error-handling
errors
Simple error handling primitives that work well with structured logging
Stars: ✭ 28 (-90%)
Mutual labels:  error-handling
errz
Error Handling In One Line
Stars: ✭ 34 (-87.86%)
Mutual labels:  error-handling
raygun4ruby
The Ruby & Ruby on Rails provider for Raygun
Stars: ✭ 37 (-86.79%)
Mutual labels:  error-handling
jsonerror
Makes Go error-handling a breeze!
Stars: ✭ 28 (-90%)
Mutual labels:  error-handling
go-errors
Flexible, general-purpose error handling for Go.
Stars: ✭ 17 (-93.93%)
Mutual labels:  error-handling
whoops
It makes simple create qualified errors.
Stars: ✭ 28 (-90%)
Mutual labels:  error-handling
chain
Extensible, Type Safe Error Handling in Haskell
Stars: ✭ 13 (-95.36%)
Mutual labels:  error-handling
rescue
🚒✨ Rescue: better errors through types (a more type directed MonadThrow/MonadCatch)
Stars: ✭ 18 (-93.57%)
Mutual labels:  error-handling
validator
💯Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving
Stars: ✭ 9,721 (+3371.79%)
Mutual labels:  error-handling
Sentry Miniapp
Sentry 小程序/小游戏 SDK:用于小程序/小游戏平台的 Sentry SDK(目前支持微信、字节跳动、支付宝、钉钉、QQ、百度小程序,微信、QQ 小游戏)
Stars: ✭ 269 (-3.93%)
Mutual labels:  error-handling
Verifier
Package verifier provides simple defensive programing primitives.
Stars: ✭ 264 (-5.71%)
Mutual labels:  error-handling
result
A lightweight C++11-compatible error-handling mechanism
Stars: ✭ 121 (-56.79%)
Mutual labels:  error-handling

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!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].