mail-prompt

1.0.0 • Public • Published

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.

Package Sidebar

Install

npm i mail-prompt

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

6.28 kB

Total Files

4

Last publish

Collaborators

  • derhuerst