callers
v1.0.3
Published
Get the modules that call a function of another module
Downloads
26
Readme
callers
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
andexclude
.
CLI
- requires a global install
callers [options] <filename> <functionName>
callers --help
for supported options