- Notifications
You must be signed in to change notification settings - Fork53
Extract meaning from JS Errors
License
NotificationsYou must be signed in to change notification settings
stacktracejs/error-stack-parser
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Simple, cross-browserError parser.This library parses and extracts function names, URLs, line numbers, and column numbers from the given Error'sstack asan Array ofStackFrames.
Once you have parsed out StackFrames, you can do much more interesting things. Seestacktrace-gps.
Note that in IE9 and earlier,Error objects don't have enough information to extract much of anything. In IE 10,Errorsare given astack once they'rethrown.
ErrorStackParser.parse(newError('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(...andsoon...)]
npm install error-stack-parserbower install error-stack-parserhttps://raw.githubusercontent.com/stacktracejs/error-stack-parser/master/dist/error-stack-parser.min.js
Want to be listed as aContributor? Start with theContributing Guide!
About
Extract meaning from JS Errors
Topics
Resources
License
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors15
Uh oh!
There was an error while loading.Please reload this page.