Module: promptOperations

A simple prompt module to get input from the user using process.stdin.

Author:
  • Seth Hollingsead
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.

Author:
  • Seth Hollingsead
Source:
Returns:

A string of whatever input the user gave.

Type
string

(inner) promptRaw(inputData, inputMetaData) → {string}

Allows for single keystroke character input from the keyboard, without pressing the enter key to confirm input.

Parameters:
Name Type Description
inputData string

Not used for this business rule.

inputMetaData string

Not used for this business rule.

Author:
  • Seth Hollingsead
Source:
Returns:

The character entered by the user.

Type
string