MCPcopy
hub / github.com/bombshell-dev/clack / constructor

Method constructor

packages/core/src/prompts/password.ts:31–42  ·  view source on GitHub ↗
({ mask, ...opts }: PasswordOptions)

Source from the content-addressed store, hash-verified

29 this._clearUserInput();
30 }
31 constructor({ mask, ...opts }: PasswordOptions) {
32 super(opts);
33 this._mask = mask ?? '•';
34 this.on('userInput', (input) => {
35 this._setValue(input);
36 });
37 this.on('finalize', () => {
38 if (this.value === undefined) {
39 this.value = '';
40 }
41 });
42 }
43}

Callers

nothing calls this directly

Calls 2

onMethod · 0.80
_setValueMethod · 0.80

Tested by

no test coverage detected