multiselect-prompt
Deprecated. Use the MultiSelect prompt from enquirer
.
A prompt to select zero or more items.
multiselect-prompt uses cli-styles and prompt-skeleton to have a look & feel consistent with other prompts.
Installing
npm install multiselect-prompt
Usage
const prompt = const colors = title: 'red' value: '#f00' title: 'yellow' value: '#ff0' title: 'green' value: '#0f0' title: 'blue' value: '#00f' selected: true title: 'black' value: '#000' title: 'white' value: '#fff' const selected = items // All these options are optionalconst opts = cursor: 1 // Initial position of the cursor, defaults to 0 (first entry) maxChoices: 3 // Maximum number of selectable options (defaults to Infinity) // The message to display as hint if enabled, below is the default value hint: '– Space to select. Return to submit.'
Related
date-prompt
mail-prompt
number-prompt
range-prompt
select-prompt
text-prompt
tree-select-prompt
cli-autocomplete
switch-prompt
Contributing
If you have a question, found a bug or want to propose a feature, have a look at the issues page.