A CLI prompt for email addresses.
mail-prompt uses cli-styles and prompt-skeleton to have a look & feel consistent with other prompts.
npm install mail-prompt
const mailPrompt = require('mail-prompt')
mailPrompt('Your email address?')
.on('data', (e) => console.log('Interim value', e.value))
.on('submit', (v) => console.log('Submitted with', v))
.on('abort', (v) => console.log('Aborted with', v))
date-prompt
multiselect-prompt
number-prompt
range-prompt
select-prompt
text-prompt
tree-select-prompt
cli-autocomplete
switch-prompt
If you have a question, found a bug or want to propose a feature, have a look at the issues page.