A simple prompt module to get input from the user using process.stdin.
- Copyright:
- Copyright © 2022-… by Seth Hollingsead. All rights reserved
- Source:
Requires
Methods
(inner) prompt(inputData, inputMetaData) → {string}
Prompts the user for some input and returns the input.
Parameters:
| Name | Type | Description |
|---|---|---|
inputData |
string | What the prompt should display when asking the user for input. |
inputMetaData |
string | Not used for this business rule. |
Returns:
A string of whatever input the user gave.
- Type
- string