node_modules/inquirer/lib/prompts/input.js
/**
   * Render the prompt to screen
   * @return {InputPrompt} self
   */
Render the prompt to screen
@return {InputPrompt} self
Render the prompt to screen @return { InputPrompt } self
render(error) {
    var bottomContent = '';
    var appendContent = '';
    var message = this.getQuestion();
    var transformer = this.opt.transformer;
    var isFinal = this.status === 'answered';
    if (isFinal) {
      appendContent = this.answer;
    } else {
      appendContent = this.rl.line;
    }
    if (transformer) {
      message += transformer(appendContent, this.answers, { isFinal });
    } else {
      message += isFinal ? chalk.cyan(appendContent) : appendContent;
    }
    if (error) {
      bottomContent = chalk.red('>> ') + error;
    }
    this.screen.render(message, bottomContent);
  }
render ( error ) { var bottomContent = '' ; var appendContent = '' ; var message = this . getQuestion ( ) ; var transformer = this . opt . transformer ; var isFinal = this . status === 'answered' ; if ( isFinal ) { appendContent = this . answer ; } else { appendContent = this . rl . line ; } if ( transformer ) { message += transformer ( appendContent , this . answers , { isFinal } ) ; } else { message += isFinal ? chalk . cyan ( appendContent ) : appendContent ; } if ( error ) { bottomContent = chalk . red ( '>> ' ) + error ; } this . screen . render ( message , bottomContent ) ; }
Render the prompt to screen
 @return {InputPrompt} self
Render the prompt to screen @return { InputPrompt } self