3 const StringPrompt = require('../types/string');
5 class PasswordPrompt extends StringPrompt {
11 format(input = this.input) {
12 if (!this.keypressed) return '';
13 let color = this.state.submitted ? this.styles.primary : this.styles.muted;
14 return color(this.symbols.asterisk.repeat(input.length));
18 module.exports = PasswordPrompt;