enquirer confirm code example
Example: enquirer confirm
const { Confirm } = require('enquirer'); const prompt = new Confirm({ name: 'question', message: 'Want to answer?'}); prompt.run() .then(answer => console.log('Answer:', answer)) .catch(console.error);