real-executable-paths-callback
Callback-style version of real-executable-paths:
Find all the resolved paths of the given executable in the PATH, with expanding all symbolic links
const realExecutablePathsCallback = ;const which = ; ; ;
Installation
npm install real-executable-paths-callback
API
const realExecutablePathsCallback = ;
realExecutablePathsCallback(fileName [, options], callback)
fileName: String
(an executable name in the PATH)
options: Object
callback: Function
(called after the paths are resolved)
It finds all the files of the given executable in the PATH environment variable, expands all symbolic links and resolves the canonicalized absolute pathname.
options
Options except for all
option are used as which
options, and option.cache
is used as cache
of fs.realpath
.
const realExecutablePathsCallback = ; ;
Related projects
- real-executable-paths (Promises/A+ version)
- real-executable-path-callback (Returns the first matched path instead of tha all)
License
Copyright (c) 2015 Shinnosuke Watanabe
Licensed under the MIT License.