</>PackageGraphPackageGraph

get-caller-file

npmv2.0.5

[![Build Status](https://travis-ci.org/stefanpenner/get-caller-file.svg?branch=master)](https://travis-ci.org/stefanpenner/get-caller-file) [![Build status](https://ci.appveyor.com/api/projects/status/ol2q94g1932cy14a/branch/master?svg=true)](https://ci.a

Not recommended for new projects

No — get-caller-file should not be adopted for new projects. Last published 2741 days ago.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • FMaintenance: grade F, Failing.

    Last published 2741 days ago.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 4.6 KB installed.

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • ALicense: grade A, Excellent.

    ISC — 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 get-caller-file 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.

4.6 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 6.* || 8.* || >= 10.*
Module format
CommonJS only
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the get-caller-file README.

// ./foo.js
const getCallerFile = require('get-caller-file');

module.exports = function() {
  return getCallerFile(); // figures out who called it
};

Dependencies

Declared by get-caller-file v2.0.5. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (8)

@types/chai ^4.1.7@types/ensure-posix-path ^1.0.0@types/mocha ^5.2.6@types/node ^11.10.5chai ^4.1.2ensure-posix-path ^1.0.1mocha ^5.2.0typescript ^3.3.3333

Used by

Popular packages that depend on get-caller-file.

Relationship graph

Dependencies (left) and dependents (right) of get-caller-file.

yargsget-caller-file
get-caller-file dependencies dependents

Frequently installed together

Release history

No releases in the last two years, typically about 1 day apart.

Recent versions of get-caller-file
VersionPublishedSizeLicense
2.0.5latest7 years ago4.6 KBISC
2.0.47 years ago4.6 KBISC
2.0.37 years ago4.6 KBISC
2.0.27 years ago4.6 KBISC
2.0.17 years ago3.4 KBISC
2.0.08 years ago2.7 KBISC
1.0.38 years ago2.4 KBISC
1.0.210 years agoISC
1.0.110 years agoISC
1.0.010 years agoISC

Overview

get-caller-file is an npm package that [![Build Status](https://travis-ci.org/stefanpenner/get-caller-file.svg?branch=master)](https://travis-ci.org/stefanpenner/get-caller-file) [![Build status](https://ci.appveyor.com/api/projects/status/ol2q94g1932cy14a/branch/master?svg=true)](https://ci.a. It has 1 known dependents in the graph. The latest version is 2.0.5, released under the ISC license.

Who should use it

Teams working in the npm ecosystem who need [![Build Status](https://travis-ci.org/stefanpenner/get-caller-file.svg?branch=master)](https://travis-ci.org/stefanpenner/get-caller-file) [![Build status](https://ci.appveyor.com/api/projects/status/ol2q94g1932cy14a/branch/master?svg=true)](https://ci.a and value a focused solution.

When not to use it

Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.

Pros

  • Clear open-source license (ISC).

Cons

  • No bundled TypeScript types (may require a separate @types package).

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Frequently asked questions

Should I use get-caller-file?

No — get-caller-file should not be adopted for new projects. Last published 2741 days ago.

How do I install get-caller-file?

Run `npm install get-caller-file` to add get-caller-file to your npm project.

What license is get-caller-file released under?

get-caller-file is distributed under the ISC license.

How popular is get-caller-file?

npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on get-caller-file.

Is get-caller-file still maintained?

The most recent release of get-caller-file (v2.0.5) was published 7 years ago.

Does get-caller-file run install scripts?

No. get-caller-file does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.