1.0.6 • Published 4 months ago

@inquirer-cli/password v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

@inquirer-cli/password

CLI tool for masked password input using Inquirer.js.

Installation

No installation required. Use npx to run the tool directly:

npx -y @inquirer-cli/password [...options]

Note: The -y flag is used with npx to skip the installation prompt. This is necessary because the CLI's output is consumed by $() in bash, which would otherwise cause the script to freeze.

Usage

Prompt the user for a password:

password=$(npx -y @inquirer-cli/password -r "Enter your password")
echo "Password received. $password"

Options

  • <message> (required): The message to display to the user.
  • -r, --required: Make the input required.
  • -h, --help: Show the help message and exit.

Example

#!/bin/sh
password=$(npx -y @inquirer-cli/password -r "Enter your password")
echo "Password received. $password"

License

MIT

1.0.6

4 months ago

1.0.5

4 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago