A CLI prompt to ask for date & time.
date-prompt uses cli-styles and prompt-skeleton to have a look & feel consistent with other prompts.
npm install date-prompt
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))
If you have a question, found a bug or want to propose a feature, have a look at the issues page.