</>PackageGraphPackageGraph

callsites

npmv4.2.0TypeScript

Get 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.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

7.0 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

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.

PackageWeekly downloadsDependentsLicenseLast release
callsitesthis page136.7M1MIT2 years ago
error-stack-parser02MIT1 day ago
anymatch01ISC1 day ago
mime136.4M6MIT1 day ago
open130.4M4MIT1 day ago
send127.6M3MIT1 day ago

Dependencies

Declared by callsites v4.2.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (3)

ava ^3.15.0tsd ^0.17.0xo ^0.44.0

Used by

Popular packages that depend on callsites.

Relationship graph

Dependencies (left) and dependents (right) of callsites.

@jest/source-mapcallsites
callsites dependencies dependents

Frequently installed together

Release history

No releases in the last two years, typically about 322 days apart.

Recent versions of callsites
VersionPublishedSizeLicense
4.2.0latest2 years ago7.0 KBMIT
4.1.03 years ago6.4 KBMIT
4.0.05 years ago6.2 KBMIT
3.1.07 years ago6.2 KBMIT
3.0.07 years ago5.7 KBMIT
2.0.010 years agoMIT
1.0.110 years agoMIT
1.0.012 years agoMIT
0.2.012 years agoMIT
0.1.012 years agoMIT

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

Keywords

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.