npm prompts 0.1.7
v0.1.7

latest releases: 2.4.2, 2.4.1, 2.4.0...
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

Don't miss a new prompts release

NewReleases is sending notifications on new releases.