
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
inquirer-honshin-select
Advanced tools
Inquirer prompt that lets you choose an item from a list and choose an action to take by pressing a key.
Inquirer prompt that lets you choose an item from a list and choose an action to take by pressing a key.
This project is a fork from: inquirer-action-select.
This project is pure JavaScript and in ES module.
npm i inquirer-honshin-select
const answer = await actionSelect({
message: 'Choose a file',
actions: [
{ value: 'open', name: 'Open', key: 'o' },
{ value: 'edit', name: 'Edit', key: 'e' },
{ value: 'delete', name: 'Delete', key: 'x' }
],
choices: [
{ value: 'image.png', name: 'image.png' },
{ value: 'audio.mp3', name: 'audio.mp3' },
{ value: 'code.py', name: 'code.py' }
]
)
? Choose a file Open <O> Edit <E> Delete <X>
❯ image.png
audio.mp3
code.py
| Property | Type | Required | Description |
|---|---|---|---|
| message | string | yes | The question to ask |
| actions | Array<{ value: T, name?: string, key: string }> | yes | List of actions the user can take on the selected choice. name is the name of the action displayed on the prompt. value is what will be returned from the prompt. key is the key the user will press to take the specified action. |
| choices | Array<{ value: T, name?: string, description?: string, disabled?: boolean | string } | Separator> | yes | List of the available choices. The value will be returned as the answer, and used as display if no name is defined. Choices who're disabled will be displayed, but not selectable. The description will be displayed under the prompt when the cursor land over the choice. |
| default | string | no | Defines in front of which item the cursor will initially appear. When omitted, the cursor will appear on the first selectable item. |
| pageSize | number | no | By default, lists of choice longer than 7 will be paginated. Use this option to control how many choices will appear on the screen at once. |
| loop | boolean | no | Defaults to true. When set to false, the cursor will be constrained to the top and bottom of the choice list without looping. |
| theme | See Theming in Select docs. | no | Customize look of the prompt. |
| Property | Type | Description |
|---|---|---|
| action | T | value specified for the selected action |
| answer | T | value specified for the selected choice |
FAQs
Inquirer prompt that lets you choose an item from a list and choose an action to take by pressing a key.
The npm package inquirer-honshin-select receives a total of 69 weekly downloads. As such, inquirer-honshin-select popularity was classified as not popular.
We found that inquirer-honshin-select demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.