English
Variable: password
ts
const password: (opts) => Promise<string | typeof CANCEL_SYMBOL>;Defined in: node_modules/.pnpm/@clack+prompts@1.9.0/node_modules/@clack/prompts/dist/index.d.mts:803
The password prompt behaves like the text prompt, but the input is masked.
Parameters
| Parameter | Type |
|---|---|
|
Returns
Promise<string | typeof CANCEL_SYMBOL>
See
https://bomb.sh/docs/clack/packages/prompts/#password-input
Example
ts
import { password } from "@clack/prompts";
const result = await password({
message: "Enter your password",
});
