code: async function consoleInput(prompt) {
      /* This simplifies authentication for a lot of use cases. */
      const rl = readline.createInterface(process.stdin, process.stdout);
      try { 
           return await new Promise(resolve => rl.question(prompt, resolve));
      } finally {
          rl.close();
      }   
  }
docs: Interactive prompt for string input on the console/tty.
  @param {string} prompt - Message to display to user as prompt.
  @returns {string} User inputted text.