{ } qjs-modules

console

Source: lib/console.js (pure JS) — default export: ConsoleSetup

A configurable console implementation built on the inspect pretty printer.

Exports

ExportArgsKindDescription
Console(...args)*functionConstructs a console object (log, info, warn, error, debug, …).
ConsoleOptions(obj)1functionBuilds/normalizes a console options object (formatting, depth, colors).
ConsoleSetup(inspectOptions, callback)2functionInstalls a global console; returns it. (default export)
inspect—re-exportRe-exported from the inspect module.