async-which

v1.0.3
0-dependancy TS async cross-platform utility to find path of executable
which path bin where ts

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
})()
npm i async-which

Metadata

  • MIT
  • >=6.0.0
  • Syed Jafri
  • released 4/21/2019

Downloads

Maintainers