input.password

Prompts the user for a password input using Enquirer.

Parameters:
NameTypeDescription
optionObject

Configuration object containing the prompt key and question.

Properties
NameTypeDescription
keystring

The key for the response.

questionstring

The message to display to the user.

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);