get-caller-file
npmv2.0.5[](https://travis-ci.org/stefanpenner/get-caller-file) [](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.
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 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)
Used by
Popular packages that depend on get-caller-file.
Relationship graph
Dependencies (left) and dependents (right) of get-caller-file.
Frequently installed together
Like which(1) unix command. Find the first instance of an executable in the PATH.
easily create complex multi-column command-line-interfaces
the mighty option parser used by yargs
An AST-based pattern checker for JavaScript.
A tiny (183B to 210B) and fast utility to ascend parent directories
the bare-bones internationalization library used by yargs
BDD/TDD assertion library for node.js and the browser. Test framework agnostic.
TypeScript definitions for chai
Get the visual width of a string - the number of columns required to display it
Cross platform child_process#spawn and child_process#spawnSync
Babel preset for TypeScript.
TypeScript definitions for node
Release history
No releases in the last two years, typically about 1 day apart.
| Version | Published | Size | License |
|---|---|---|---|
| 2.0.5latest | 7 years ago | 4.6 KB | ISC |
| 2.0.4 | 7 years ago | 4.6 KB | ISC |
| 2.0.3 | 7 years ago | 4.6 KB | ISC |
| 2.0.2 | 7 years ago | 4.6 KB | ISC |
| 2.0.1 | 7 years ago | 3.4 KB | ISC |
| 2.0.0 | 8 years ago | 2.7 KB | ISC |
| 1.0.3 | 8 years ago | 2.4 KB | ISC |
| 1.0.2 | 10 years ago | — | ISC |
| 1.0.1 | 10 years ago | — | ISC |
| 1.0.0 | 10 years ago | — | ISC |
Overview
get-caller-file is an npm package that [](https://travis-ci.org/stefanpenner/get-caller-file) [](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 [](https://travis-ci.org/stefanpenner/get-caller-file) [](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.