text: const prompts = require('prompts');
  const log = require('simple-node-logger').createSimpleLogger();
  
  (async () => {
    log.info('Getting user age');
  
    const response = await prompts({
      type: 'number',
      name: 'value',
      message: 'How old are you?',
      validate: value => value < 18 ? `Nightclub is 18+ only` : true
    });
   
    console.log(response); // => { value: 24 }
  })();
  