async-which
Version:
0-dependancy TS async cross-platform utility to find path of executable
27 lines (20 loc) • 388 B
Markdown
0-dependancy TS async cross-platform utility to find path of executable
NPM
```
npm i async-which
```
Yarn
```
yarn add async-which
```
```js
import which from "async-which"
(async () => {
const pathToBin = await which('node')
console.log(pathToBin) // /Users/user/.nvm/versions/node/v8.10.0/bin/node
})()
```
> Find binary executable path