callers

1.0.3 • Public • Published

callers npm npm

Get the modules that call a function of another module

npm install callers

Usage

var callers = require('callers');
 
callers({
  filename: 'file/that/has/the/function',
  functionName: 'foobar',
  directory: 'path/to/all/js/files',
  success: function(err, callers) {
 
  }
});
  • You can also pass optional arguments through to node-dependents like config and exclude.

CLI

  • requires a global install

callers [options] <filename> <functionName>

  • callers --help for supported options

Dependents (1)

Package Sidebar

Install

npm i callers

Weekly Downloads

6

Version

1.0.3

License

MIT

Last publish

Collaborators

  • pahen
  • xhmikosr
  • mrjoelkemp