Gathering detailed insights and metrics for capture-stack-trace
Gathering detailed insights and metrics for capture-stack-trace
Gathering detailed insights and metrics for capture-stack-trace
Gathering detailed insights and metrics for capture-stack-trace
npm install capture-stack-trace
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
61 Stars
9 Commits
3 Forks
3 Watching
1 Branches
2 Contributors
Updated on 20 Apr 2024
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-7.2%
430,406
Compared to previous day
Last week
4.7%
2,661,698
Compared to previous week
Last month
26.7%
10,346,287
Compared to previous month
Last year
-14.1%
100,224,940
Compared to previous year
This is useful for creating cross-platform code as Error#captureStackTrace
is only available in V8-based JavaScript environments like Node.js and Chrome.
1npm install capture-stack-trace
1import captureStackTrace from 'capture-stack-trace'; 2 3const object = {}; 4captureStackTrace(object); 5object.stack; // Similar to `new Error().stack`
Creates a .stack
property on the given object
, which when accessed returns a string representing the location in the code at which captureStackTrace()
was called.
Note: This ponyfill does not support the second parameter of Error#captureStackTrace
.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/9 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
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