Regenerating node_modules
This commit is contained in:
parent
09b4a82c83
commit
c96f84308a
5488 changed files with 487362 additions and 60779 deletions
18
node_modules/enquirer/lib/prompts/password.js
generated
vendored
Normal file
18
node_modules/enquirer/lib/prompts/password.js
generated
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
'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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue