This package has been deprecated

Author message:

Use the input or password prompt from the enquirer package.

text-prompt

0.1.3 • Public • Published

text-prompt ⌨

Deprecated. Use the input prompt or password prompt from enquirer.


A CLI prompt for text.

asciicast

npm version dependency status ISC-licensed chat on gitter

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

Installing

npm install text-prompt

Usage

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

Contributing

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

Dependencies (4)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i text-prompt

    Weekly Downloads

    36

    Version

    0.1.3

    License

    ISC

    Unpacked Size

    5.9 kB

    Total Files

    4

    Last publish

    Collaborators

    • derhuerst