JSPM

async-which

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 14
  • Score
    100M100P100Q41788F
  • License MIT

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

Package Exports

  • async-which

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (async-which) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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
})()