@inquirer-cli/editor
April 4, 2025 ยท View on GitHub
CLI tool for multi-line input using the default editor via Inquirer.js.
Status
๐ง NOT SUPPORTED YET: This package is currently not functional due to technical difficulties.
Installation
No installation required. Use npx to run the tool directly:
npx -y @inquirer-cli/editor [...options]
Note: The
-yflag is used withnpxto 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
Attempt to prompt the user for multi-line input:
notes=$(npx -y @inquirer-cli/editor "Write your notes")
echo "Your notes: $notes"
Options
<message>(required): The message to display to the user.-h, --help: Show the help message and exit.
Example
#!/bin/sh
notes=$(npx -y @inquirer-cli/editor "Write your notes")
echo "Your notes: $notes"
License
MIT