Skip to content

derhuerst/mail-prompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mail-prompt 📎

A CLI prompt for email addresses.

asciicast

npm version dependency status dev dependency status ISC-licensed support me via GitHub Sponsors chat with me on Twitter

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

Installing

npm install mail-prompt

Usage

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))

Related

Contributing

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