INNER CODE UNIT · JavaScript

isYarnInstalled

dabit3/react-native-ai · cli/cli.js:19

const isYarnInstalled = () => {
  try {
    childProcess.execSync('yarn --version');
    return true;
  } catch {
    return false; 
  }
}

const isBunInstalled = () => {
  try {
    childProcess.execSync('bun --version')
    return true;
  } catch(err) {
    return false; 
  }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…