package console_module
- Alphabetic
- Public
- Protected
Type Members
- class Console extends Object
The console module provides a simple debugging console that is similar to the JavaScript console mechanism provided by web browsers.
The console module provides a simple debugging console that is similar to the JavaScript console mechanism provided by web browsers.
The module exports two specific components:
- A
Consoleclass with methods such asconsole.log(),console.error()andconsole.warn()that can be used to write to any Node.js stream. - A global
consoleinstance configured to write toprocess.stdoutandprocess.stderr. The globalconsolecan be used without callingrequire('console').
Warning: The global console object's methods are neither consistently synchronous like the browser APIs they resemble, nor are they consistently asynchronous like all other Node.js streams. See the note on process I/O for more information.
- Annotations
- @RawJSType() @native() @JSImport("console", "Console")
- See also
https://nodejs.org/api/console.html
- A
- class ConsoleDirOptions extends Object
Console Dir Options
Console Dir Options
- Annotations
- @ScalaJSDefined() @RawJSType()
- class ConsoleOptions extends Object
- Annotations
- @ScalaJSDefined() @RawJSType()
Value Members
- object Console extends Console
A global
Consoleinstance configured to write to io.scalajs.nodejs.process.Process.stdout and io.scalajs.nodejs.process.Process.stderr.A global
Consoleinstance configured to write to io.scalajs.nodejs.process.Process.stdout and io.scalajs.nodejs.process.Process.stderr.- Annotations
- @native() @JSGlobal("console")