PHP WebShell
Текущая директория: /opt/BitGoJS/node_modules/enquirer/lib/prompts
Просмотр файла: password.js
'use strict';
const StringPrompt = require('../types/string');
class PasswordPrompt extends StringPrompt {
constructor(options) {
super(options);
this.cursorShow();
}
format(input = this.input) {
if (!this.keypressed) return '';
let color = this.state.submitted ? this.styles.primary : this.styles.muted;
return color(this.symbols.asterisk.repeat(input.length));
}
}
module.exports = PasswordPrompt;
Выполнить команду
Для локальной разработки. Не используйте в интернете!