1.0.7 • Published 5 years ago

stdin-prompt v1.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

Prompt

What is prompt?

Prompt is an extremely lightweight prompter for the CLI.

Installation

Run the command

npm i stdin-prompt

to install Prompt.

Require

Require with this code:

var prompt = require('stdin-prompt');

Syntax

prompt.once(prompt, callback);

Where prompt is a string containing the name of the prompt. Where callback is a function with an argument data, the prompt data from the CLI.

prompt.interface(prompt, callback);

Where prompt is a string containing the text to output each time the callback is complete. Where callback is a function with an argument data, the prompt data from the CLI.

1.0.7

5 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago