Ask a question on the commandline, and return the input answer. Throws an error on CTRL-C, but does not end the process.

await prompt(question)

Examples

const mood = await prompt('How do you feel?');

try {
  await prompt('Press Enter to continue, or CTRL-C to cancel');
} catch (err) {
  console.log("Skipping");
  return;
}
console.log('Continuing');