async-which

0-dependancy TS async cross-platform utility to find path of executable

Usage no npm install needed!

<script type="module">
  import asyncWhich from 'https://cdn.skypack.dev/async-which';
</script>

README

async-which

Find binary executable path

0-dependancy TS async cross-platform utility to find path of executable

Install

NPM

npm i async-which

Yarn

yarn add async-which

Usage

import which from "async-which"

(async () => {
    const pathToBin = await which('node')
    console.log(pathToBin) // /Users/user/.nvm/versions/node/v8.10.0/bin/node
})()