node package manager
Don’t reinvent the wheel. Reuse code within your team. Create a free org »

date-prompt

date-prompt 📅

A CLI prompt to ask for date & time.

asciicast

npm version dependency status ISC-licensed

date-prompt uses cli-styles and prompt-skeleton to have a look & feel consistent with other prompts.

Installing

npm install date-prompt

Usage

const numberPrompt = require('date-prompt')
datePrompt()
.on('data', (v) => console.log('Interim value', v))
.on('submit', (v) => console.log('Submitted with', v))
.on('abort', (v) => console.log('Aborted with', v))

Related

Contributing

If you have a question, found a bug or want to propose a feature, have a look at the issues page.