package
Parses every stack trace into a nicely formatted array of hashes.
npm install stacktrace-parserGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
This parser parses a stack trace from any browser or Node.js and returns an array of hashes each representing a line.
The goal here is to support every browser even old Internet Explorer stack traces will work.
npm install stacktrace-parserimport * as stackTraceParser from 'stacktrace-parser';
try {
throw new Error('My error');
} catch(ex) {
const stack = stackTraceParser.parse(ex.stack);
}Every line contains five properties: lineNumber, methodName, arguments, file and column (if applicable).
If you want to contrib, then do you thing, write tests, run npm run test ensure that everything is green,
commit and make the pull request. Or just write an issue, or let's talk.
Estimated unpacked size across 3 packages.
581.6 kB
Includes dependencies.