input.password
Prompts the user for a password input using Enquirer.
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
option | Object | Configuration object containing the prompt key and question. Properties
|
Returns:
The response object with the entered password.
- Type:
- Promise.<Object>
Example
import { input } from "@jlongyam/cli";
let result = await input.password({
key: 'pass',
question: 'your password:',
});
console.log(result.pass);