Gathering detailed insights and metrics for error-stack-parser
Gathering detailed insights and metrics for error-stack-parser
Gathering detailed insights and metrics for error-stack-parser
Gathering detailed insights and metrics for error-stack-parser
npm install error-stack-parser
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
456 Stars
237 Commits
52 Forks
18 Watching
11 Branches
14 Contributors
Updated on 18 Nov 2024
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-3.4%
2,490,449
Compared to previous day
Last week
2.8%
13,249,960
Compared to previous week
Last month
11%
55,534,708
Compared to previous month
Last year
3.4%
609,147,475
Compared to previous year
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, Error
s
are given a stack
once they're throw
n.
1ErrorStackParser.parse(new Error('BOOM'));
2
3=> [
4 StackFrame({functionName: 'foo', args: [], fileName: 'path/to/file.js', lineNumber: 35, columnNumber: 79, isNative: false, isEval: false}),
5 StackFrame({functionName: 'Bar', fileName: 'https://cdn.somewherefast.com/utils.min.js', lineNumber: 1, columnNumber: 832, isNative: false, isEval: false, isConstructor: true}),
6 StackFrame(... and so on ...)
7 ]
1npm install error-stack-parser 2bower install error-stack-parser 3https://raw.githubusercontent.com/stacktracejs/error-stack-parser/master/dist/error-stack-parser.min.js
Want to be listed as a Contributor? Start with the Contributing Guide!
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
Found 2/24 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
Project has not signed or included provenance with any releases.
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
25 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More