0.1.3 • Published 6 years ago
text-prompt v0.1.3
text-prompt ⌨
Deprecated. Use the input prompt or password prompt from enquirer.
A CLI prompt for text.
text-prompt uses cli-styles and prompt-skeleton to have a look & feel consistent with other prompts.
Installing
npm install text-promptUsage
const textPrompt = require('text-prompt')
textPrompt('What is your name?')
.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
date-promptmail-promptmultiselect-promptnumber-promptrange-promptselect-prompttree-select-promptcli-autocompleteswitch-prompt
Contributing
If you have a question, found a bug or want to propose a feature, have a look at the issues page.
