Installations
npm install callers-path
Developer Guide
Typescript
No
Module System
CommonJS
Min. Node Version
>= 0.9.0
Node Version
2.0.0
NPM Version
2.9.0
Score
66.5
Supply Chain
82.9
Quality
75.7
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
stringparser
Download Statistics
Total Downloads
14,887
Last Day
1
Last Week
5
Last Month
53
Last Year
1,336
GitHub Statistics
1 Stars
34 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Jul 19, 2015
Bundle Size
669.00 B
Minified
350.00 B
Minified + Gzipped
Package Meta Information
Latest Version
1.0.5
Package Id
callers-path@1.0.5
Size
2.17 kB
NPM Version
2.9.0
Node Version
2.0.0
Total Downloads
Cumulative downloads
Total Downloads
14,887
Last Day
0%
1
Compared to previous day
Last Week
-54.5%
5
Compared to previous week
Last Month
381.8%
53
Compared to previous month
Last Year
60.8%
1,336
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
callers-path
V8 stacktrace API based caller's path
install
npm install --save callers-path
usage
example/moduleB.js
1var callersPath = require('callers-path'); 2module.exports = function(){ 3 console.log(callersPath()); 4};
example/moduleA.js
1var moduleB = require('./moduleB'); 2 moduleB(); 3// => example/moduleA.js
documentation
require('callers-path')([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 stack is sliced by one.
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
test
npm test
license

No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
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
Found 0/30 approved changesets -- 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
license file not detected
Details
- Warn: project does not have a license file
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
2.6
/10
Last Scanned on 2025-02-03
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