How to use the @ionic/utils-subprocess.which function in @ionic/utils-subprocess

To help you get started, we’ve selected a few @ionic/utils-subprocess examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ionic-team / ionic-cli / packages / ionic / src / lib / shell.ts View on Github external
async which(command: string, { PATH = process.env.PATH }: WhichOptions = {}): Promise {
    return which(command, { PATH: this.alterPath(PATH || '') });
  }
github ionic-team / ionic-cli / packages / ionic / src / lib / native-run.ts View on Github external
export async function findNativeRun(): Promise {
  try {
    return await which('native-run');
  } catch (e) {
    if (e.code !== 'ENOENT') {
      throw e;
    }
  }
}

@ionic/utils-subprocess

Subprocess utils for NodeJS

MIT
Latest version published 11 months ago

Package Health Score

77 / 100
Full package analysis

Similar packages