Description
inquirer-datepicker is a datepicker plugin for Inquirer.js, the library for interactive prompts in Node.js command-line tools. You install the plugin and register its prompt with Inquirer, then ask the user for a date in the terminal. The README lists its options. The message option, inherited from Inquirer, is shown while the answer is requested. The format option takes the format for printing the date, using the moment format options, and the default option sets the initial value. The min and max options set a range, and users are blocked from entering values higher or lower than it. The steps options for years, months, days, hours, minutes and seconds set the interval, but they apply only when the user changes the value with the up and down keys. The README credits the inquirer-datepicker-prompt project, which is a related datepicker plugin. The project shows npm version and download badges, and the source is public on GitHub. It suits command-line tools that need to ask for a date, such as a scheduler or a report generator.…
Highlights
- Datepicker prompt for Inquirer.js
- Format option based on moment
- Default date and min and max range
- Step intervals for up and down keys
- Installs from npm
Ratings & Reviews
No ratings yet
Be the first to rate inquirer-datepicker.
People also visit
inquirer-datepicker FAQ
What is inquirer-datepicker?
A datepicker plugin for Inquirer.js that asks users for a date in a Node.js command-line tool.
How do I install it?
The README's getting started section shows installing the plugin and registering the prompt.
Does it use the same format options as the other datepicker?
No. The README says the format option uses moment format options, while the related inquirer-datepicker-prompt project uses dateformat masks.
Is it free?
The source is public on GitHub and listed as open source.
What are the best inquirer-datepicker alternatives?
Popular alternatives to inquirer-datepicker include inquirer-datepicker-prompt, pikaday and bootstrap-datepicker. See all inquirer-datepicker alternatives


















