error-stack-normalizer
v1.0.2
Published
error-stack-normalizer ---------------------------
Downloads
6
Readme
error-stack-normalizer
This modules attempts to normalize Error.stack objects across browsers and javascript engines.
Install
npm install error-stack-normalizer
Use
var ErrorStackParser = require('error-stack-parser')
var stackframes = [
{
functionName: 'e loadUrl/<',
fileName: 'http://localhost:8080/test.html',
lineNumber: 18,
columnNumber: 9,
source: 'e loadUrl/<@http://localhost:8080/test.html:18:9'
},
{
functionName: ' nn.Callbacks/j',
fileName: 'https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js',
lineNumber: 2,
columnNumber: 26920,
source: ' nn.Callbacks/j@https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js:2:26920'
},
{
functionName: '.send/b/<',
fileName: 'https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js',
lineNumber: 4,
columnNumber: 14765,
source: '.send/b/<@https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js:4:14765'
}
]
var normalizedStackFrames = errorStackNormalizer(stackframes)