Skip to content

Function: nodeConsole()

Documentation / @wtf/platform-node / console / nodeConsole

function nodeConsole(__namedParameters?): Console;

Defined in: packages/platform-node/src/console.ts:22

A console of the Console Standard’s shape over the process’s stdout, of debug and info, and its stderr, of warn and error, or the streams given, as text or records of JSON, coloured as stderr shows colour, its timers of performance of node:perf_hooks, and of the least level given. A CLI whose stdout is its output gives its stderr as both: nodeConsole({ stdout: process.stderr }). Node’s own console, of node:console, is a Console as it is.

Parameters

ParameterType
__namedParametersNodeConsoleOptions

Returns

Console