Installations
npm install v8-callsites
Score
72.5
Supply Chain
95.9
Quality
75.8
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Developer
stringparser
Developer Guide
Module System
Unable to determine the module system for this package.
Min. Node Version
Typescript Support
No
Node Version
3.3.1
NPM Version
2.14.3
Statistics
5 Stars
63 Commits
1 Watching
1 Branches
1 Contributors
Updated on 12 Aug 2019
Languages
JavaScript (100%)
Total Downloads
Cumulative downloads
Total Downloads
374,866
Last day
779.1%
378
Compared to previous day
Last week
155.5%
2,402
Compared to previous week
Last month
21.8%
7,341
Compared to previous month
Last year
7.6%
73,036
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
v8-callsites
V8 stacktrace API callsites with knobs.
install
npm install --save v8-callsites
usage
1var stack = require('v8-callsites'); 2 3origin(); 4 5function origin(){ 6 foo(); 7} 8 9function foo(){ 10 bar(); 11} 12 13function bar(){ 14 baz(); 15} 16 17function baz(){ 18 19 var barStackFrombaz = stack(3, bar); 20 // bar `stack` from baz with only 3 frames 21 22 barstackFrombaz.forEach(function(frame){ 23 console.log( 24 frame.getFunctionName(), '->', frame+'' 25 ); 26 }); 27} 28
documentation
require('v8-callsites')([frames, origin])
frames
if specified should be aninteger
bigger than0
orInfinity
.origin
if specified should be a function.- if no arguments, the default number of
frames
is2
so theorigin
is the module itself. The returned stack is sliced by one.
See also the avaliable methods of the stack trace api like:
getLineNumber
getFileName
getEvalOrigin
- etc.
why
You would like to set how many frames are recorded (Error.stackTraceLimit
) and from which function the stack should be traced back (Error.captureStackTrace
).
By default two frames are recorded, though you can even lower it to one providing a function from which start.
inspirated by
It serves for the same use cases implemented on this cool modules
I've been using those a lot.
test
npm test
license
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
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
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
3
/10
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