❯ Lightweight, beautiful and user-friendly interactive prompts
Update kleur to version 3
Prompts recently hit 4 Million downloads a month. 🎉 Thanks to all the amazing contributors!
Fix #86 #91 Huge thanks to @DrunkenPoney 🎉
onSubmit
and onCancel
now support async
/Promise
returning functions. #83answers
object is now available in onSubmit
/onCancel
#85Thanks @pvdlg
validate
option for NumberPrompt and TextPrompt. 🎉 #2stdin
and stdout
option for all prompts.initial
values in TextPrompt and NumberPrompt.hint
option in SelectPrompt.float
, round
and increment
option in NumberPrompt.fallback
text and initial
value options for AutocompletePrompt.emoji
renderer option ... why not!Fix #78
Fix #57: Cannot use a function for message
since 0.1.5
New: Better default values
Most prompts now support default values with the initial
property.
initial
is used when a prompt is submitted without any values.
As soon as you start typing the initial value disappear. Hit tab
to expand defaults NumberPrompt and all TextPrompt based prompts.
New: stdin
and stdout
option
New: Improved NumberPrompt
float
option.round
increment
New: hint
added to SelectPrompt
New: Fallback message for AutocompletePrompt
initial
optionfallback
. Defaults to initial
value or no matches found
if no initial value is defined.Fixes
style
function in NumberPromptFix broken dynamic prompts #53 after refactor #43. Thanks @WilliamChelman
inject
feature by @lukeed #1 #13abort
by default #27