Experimental
Function
Experimental
mergeAn alias for this package's mergeArgs().
Inputs can be undefined, and if so, the default is returned.
Default object type.
Default values (if not specified in inputs).
Optional
inputs: undefinedOverriding values (changes to make).
Optional
recursive: booleanOptional. Whether to merge the object recursively. Default false.
Resulting object with all the defaults
and inputs
keys with
either default values or input values, as appropriate.
Passing recursive
as false means that the input type must be a Partial
(not RecursivePartial).
Optional
recursive: falsePassing recursive
as true means that the input type may actually be a
RecursivePartial.
Universal overload.
Optional
inputs: IOptional
recursive: booleanExperimental
Experimental
Build a complete args object.
Optional
args: RecursivePartial<MessageMaker.Args>Experimental
Build a complete args object.
Optional
args: InputArgsExperimental
Overrides the default function to return a string representation of this object.
Experimental
Joins string arrays with a single new line and adds an indent to the beginning of every line, and adds next level of indent for child arrays.
String to implode. Arrays are joined with '\n'
.
Optional. Default this.args.msg.tab
.
The same text, but with an indent added after every new line.
Experimental
Formats the given message according to options.
Message to display. If it's an array, the strings are joined with '\n'
.
Optional. Overrides for default arguments in MessageMaker.args.
Experimental
Formats given messages individually and then joins them on return.
Messages to display, each with their own personal override arguments. Joined with universalArgs.joiner
(default '\n\n'
) before return.
Optional. Overrides for default arguments in MessageMaker.args for all messages.
Experimental
Formats the given message according to options.
Message to display. If it's an array, the strings are joined with '\n'
.
Optional. Overrides for default arguments in ['msgArgs']. Used for the whole message.
Optional. Overrides for default arguments in ['msgArgs']. Used only for the timestamp.
Protected
lineExperimental
Used to map each line of a message in MessageMaker.msg.
Does not wrap or split it (assumes this has already been done). Applies MessageMaker.painter and MessageMaker.Args.depth indent.
String to map. Already wrapped to line width, if applicable.
Message arguments that apply to this line. Also passed to MessageMaker.painter.
Optional. Unpainted string added before the line. Helpful for hanging indents. Default ''.
Protected
Static
defaultExperimental
Returns the default painter callback function for the given format.
'html'
and 'markdown'
default painters currently do not apply any
colours.
Used only by MessageMaker.buildArgs.
A complete arguments object. Requires complete to avoid building complete arguments multiple times.
Experimental
Applies colour and font styles to an message for output.
A configurable class for formatting message strings for various outputs.
Since
0.1.1 — Experimental