Prompts Versions Save

❯ Lightweight, beautiful and user-friendly interactive prompts

v1.2.1

5 years ago

Update kleur to version 3

v1.2.0

5 years ago
  • New onRender callback feature #101 by @DrunkenPoney
  • Added disable option #102 #96 #104 by @DrunkenPoney @pvdlg @SurionA
  • Fixed suggest/choices bug #98 by @DrunkenPoney
  • Expose all hardcoded strings as options to allow for translation #94 by @millette

Prompts recently hit 4 Million downloads a month. 🎉 Thanks to all the amazing contributors!

v1.1.1

5 years ago

Fix #86 #91 Huge thanks to @DrunkenPoney 🎉

v1.1.0

5 years ago
  • onSubmit and onCancel now support async/Promise returning functions. #83
  • answers object is now available in onSubmit/onCancel #85

Thanks @pvdlg

v1.0.0

5 years ago
  • validate option for NumberPrompt and TextPrompt. 🎉 #2
  • stdin and stdout option for all prompts.
  • Tab functionality for initial values in TextPrompt and NumberPrompt.
  • hint option in SelectPrompt.
  • float, round and increment option in NumberPrompt.
  • fallbacktext and initial value options for AutocompletePrompt.
  • emoji renderer option ... why not!
  • Better cursor in AutocompletePrompt.
  • Updated documention

v0.1.14

5 years ago

Fix #78

v0.1.8

6 years ago

Fix #57: Cannot use a function for message since 0.1.5

v0.1.7

6 years ago

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

  • This is going to be used to test prompts in future releases.

New: Improved NumberPrompt

  • Now supports floats too! Activate with the float option.
  • You can now enter negative values without having to use the arrow keys
  • Option to round float values with round
  • Option to change how much the arrow-keys increment with increment

New: hint added to SelectPrompt

New: Fallback message for AutocompletePrompt

  • New initial option
  • New option to define a fallback message when no results are found with fallback. Defaults to initial value or no matches found if no initial value is defined.

Fixes

  • Fix broken style function in NumberPrompt

v0.1.6

6 years ago

Fix broken dynamic prompts #53 after refactor #43. Thanks @WilliamChelman

v0.1.5

6 years ago
  • fix #26 thanks to @unain #30
  • new inject feature by @lukeed #1 #13
  • fix default export by @lukeed #13
  • fix crash in number prompt when hitting delete before typing ba7a46f
  • default prompt choices title to value if not set #40
  • cancel prompt loop on abort by default #27