INNER CODE UNIT · JavaScript

getBrowserToInstall

sebastiancarlos/beachpatrol · .internal-scripts/postinstall.js:50

const getBrowserToInstall = async () => {
  const rl = createInterface({
    input: process.stdin,
    output: process.stdout,
  });
  console.log(
    "No browsers are installed. You need to install at least one browser.",
  );
  const answer = await rl.question(
    "Would you like to install Chromium, Firefox, or all of them? (c/f/A): ",
  );
  rl.close();
  let browsersToInstall = [];
  switch (answer.toLowerCase()) {
    case "c":
      browsersToInstall = ["chromium"];
      break;
    case "f":

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…