util-console

Methods

(inner) prints(message, typeopt, configopt)

Prints the message to the console with different types. print is available on window, so prints.
Parameters:
Name Type Attributes Default Description
message * to rprint
type string <optional>
log log/info/warn/error/table/clear
config object <optional>
{} Optional configuration parameters
Properties
Name Type Attributes Default Description
newLinesBefore number <optional>
0 to have `n` newlines before the console[type] output
newLinesAfter number <optional>
0 to have `n` newlines after the console[type] output
Since:
  • 1.0.0
Source: