support/announcing-enquirer-2.0.md
This version of Enquirer is a complete overhaul, not only in terms of how prompts are written and handled but also in terms of our philosophy for creating and maintaining prompts.
Enquirer 2.0 will ship with several built-in prompts (some prompt libraries will be deprecated)
Semantic styling system that makes colors and symbols easier than every to customize
Only one dependency!
Easier to customize and use
New prompt types
New features
Stylish CLI prompts that are user-friendly and easy to create.
Prompts should be more like a conversation than an inquisition.
Enquirer is fast, lightweight, and easy enough to use on small projects, while also being powerful and customizable enough for the most advanced use cases.
Stylish and user-friendly prompt system. Fast and lightweight enough for small projects, yet powerful and extensible enough for the most advanced use cases.
What's changing in Enquirer 2.0?
What's new in Enquirer 2.0?
A lot! Several exciting new prompt types and useful features have been added, including:
New Prompt Types
Even when you only need to ask for a single piece of information, prompts should be more like conversations than interrogations. Enquirer 2.0 introduces new prompt concepts that will make it easier to have conversations with users by achieving the following goals:
Like web forms, users should be able to provide multiple pieces of information at once, allowing them to tab through fields, make changes, and advance at their own pace before submitting their information.
By simplifying this process, prompt implementors will be able to spend more time thinking about how to communicate with uses, and less time worrying about setup, writing code, and implementation details.
Stying
We put a lot of thought and effort into styling. Our goals were the following:
I think we accomplished all of these goals! Keep reading to learn how we made styling easier in Enquirer 2.0!
Semantic styles
Enquirer 2.0 has a has a built-in "palette" of semantically named styles, which are used consistently throughout the prompts. These styles are prompt.styles
Palette
info - cyan
danger - red
strong - bold
success - green
warning - yellow
disabled - gray
muted - dim
dark - dim.gray
Elements - The various parts of prompt are called "elements".
Customizable - It's now super easy to apply custom styles, text or Unicode symbols to any part of a prompt.
Themes -