How to use the child_process.exec.promise function in child_process

To help you get started, we’ve selected a few child_process 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 expo / xdl / src / Android.js View on Github external
async function isDeviceAttached() {
  let devices = await exec.promise("./adb devices | awk '!/List of devices/ && NF' | wc -l", options);
  return parseInt(devices) > 0;
}
github expo / xdl / src / Android.js View on Github external
async function isExponentInstalledAsync() {
  let numberOfExponentApps = await exec.promise("./adb shell 'pm list packages -f' | grep 'host.exp.exponent' | wc -l", options);
  return parseInt(numberOfExponentApps) > 0;
}

child_process

This package name is not currently in use, but was formerly occupied by another package. To avoid malicious use, npm is hanging on to the package name, but loosely, and we'll probably give it to you if you want it.

ISC
Latest version published 8 years ago

Package Health Score

65 / 100
Full package analysis