-
resolveBin(name, opts, cb)
-
Resolves the full path to the bin file of a given package by inspecting the "bin" field in its package.json.
Parameters:
Name Type Argument Description namestring module name, i.e. 'tap'
optsObject <optional>
options
Properties
Name Type Description executablestring (default: @name) executable name (e.g. 'buster-test')
cbfunction called back with the full path to the bin file of the module or an error if it couldn't be resolved
-
resolveBin::sync(name, opts) → {string}
-
Synchronous version of resolveBin
Parameters:
Name Type Argument Description namestring module name, i.e. 'tap'
optsObject <optional>
options
Properties
Name Type Description executablestring (default: @name) executable name (e.g. 'buster-test')
