callsites
npmv4.2.0TypeScriptGet callsites from the V8 stack trace API
Adopt with care
callsites is usable, with caveats. Last published 802 days ago.
- AAdoption: grade A, Excellent.
136.7M downloads per week and 1 known dependents.
- DMaintenance: grade D, Poor — a real concern.
Last published 802 days ago.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 7.0 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding callsites to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- node >=12.20
- Module format
- ESM only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the callsites README.
import callsites from 'callsites';
function unicorn() {
console.log(callsites()[0].getFileName());
//=> '/Users/sindresorhus/dev/callsites/test.js'
}
unicorn();callsites vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| callsitesthis page | 136.7M | 1 | MIT | 2 years ago |
| error-stack-parser | 0 | 2 | MIT | 1 day ago |
| anymatch | 0 | 1 | ISC | 1 day ago |
| mime | 136.4M | 6 | MIT | 1 day ago |
| open | 130.4M | 4 | MIT | 1 day ago |
| send | 127.6M | 3 | MIT | 1 day ago |
Dependencies
Declared by callsites v4.2.0. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (3)
Used by
Popular packages that depend on callsites.
Relationship graph
Dependencies (left) and dependents (right) of callsites.
Frequently installed together
A drop-in replacement for fs, making various improvements.
Trace the original position through a source map
Converts a source-map from/to different formats and allows adding/changing properties.
Release history
No releases in the last two years, typically about 322 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 4.2.0latest | 2 years ago | 7.0 KB | MIT |
| 4.1.0 | 3 years ago | 6.4 KB | MIT |
| 4.0.0 | 5 years ago | 6.2 KB | MIT |
| 3.1.0 | 7 years ago | 6.2 KB | MIT |
| 3.0.0 | 7 years ago | 5.7 KB | MIT |
| 2.0.0 | 10 years ago | — | MIT |
| 1.0.1 | 10 years ago | — | MIT |
| 1.0.0 | 12 years ago | — | MIT |
| 0.2.0 | 12 years ago | — | MIT |
| 0.1.0 | 12 years ago | — | MIT |
Overview
callsites is an npm package that get callsites from the V8 stack trace API. It is extremely widely used, with about 136.7M downloads per week and 1 known dependents in the graph. The latest version is 4.2.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need get callsites from the V8 stack trace API and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (136.7M weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
- Lean dependency tree (3 direct dependencies).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Funding
Frequently asked questions
Should I use callsites?
callsites is usable, with caveats. Last published 802 days ago.
How do I install callsites?
Run `npm install callsites` to add callsites to your npm project.
What license is callsites released under?
callsites is distributed under the MIT license.
How popular is callsites?
callsites has approximately 136,680,659 downloads per week and 1 known dependent packages.
Is callsites still maintained?
The most recent release of callsites (v4.2.0) was published 2 years ago.
Does callsites run install scripts?
No. callsites does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.