real-executable-path
Find the first instance of an executable in the PATH, with expanding all symbolic links
const realExecutablePath = ;const which = ; ; ;
Installation
npm install real-executable-path
API
const realExecutablePath = ;
realExecutablePath(binName [, options])
binName: string
(an executable name in the PATH)
options: Object
(node-which
options except for all
)
Return: Promise<string>
It finds the first instance of the given executable in the PATH environment variable, expands all symbolic links and resolves the canonicalized absolute pathname.
Related projects
- real-executable-paths – Returns all matched paths, instead of just the first one
- real-which – CLI
License
ISC License © 2017 - 2018 Shinnosuke Watanabe