LogUtil

LogUtil

Logging utility class, primarily for tasks that fall outside the scope of Logger, especially in receiving and interacting with user input.

Constructor

new LogUtil()

Source:

Methods

(async) promptExistence()

Source:

A convenient function to use with any functions that may not always necessarily receive their arguments (e.g. bash shell calling a node script through stages, if things break and the next function dependent on the previous one has an undefined variable, simply prompt the user for it and keep running).

If the variable has not been given a value (more strictly, if falsy), let the user know, request a new value, and continue, unless told to otherwise.