Inquirer.js strives to be an easily embeddable and beautiful command line interface for Node.js (and perhaps the "CLI Xanadu"). Inquirer.js should ease the process of providing error feedback, asking questions, parsing input, validating answers, and managing hierarchical prompts. Inquirer.js provides the user interface and the inquiry session flow. If you're searching for a full blown command line program utility, then check out commander, vorpal or args. Create a self contained inquirer module. If you don't want to affect other libraries that also rely on inquirer when you overwrite or add new prompt types. Internally, Inquirer uses the JS reactive extension to handle events and async flows. This mean you can take advantage of this feature to provide more advanced flows. For example, you can dynamically add questions to be asked.

Features

  • Checkbox list with autocomplete and other additions
  • Presents a list of options as the user types, compatible with other packages such as fuzzy (for search)
  • Customizable date/time selector with localization support
  • Customizable date/time selector using both number pad and arrow keys
  • Prompt for selecting index in array where add new element
  • Simple prompt with command history and dynamic autocomplete
  • Prompt for inputting emojis
  • Prompt for input chalk-pipe style strings
  • Auto submit based on your current input, saving one extra enter

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Inquirer.js

Inquirer.js Web Site

You Might Also Like
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Inquirer.js!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

JavaScript

Related Categories

JavaScript User Interface (UI) Software

Registered

2021-04-14