package console_module
- Alphabetic
- Public
- All
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
Console
class with methods such asconsole.log()
,console.error()
andconsole.warn()
that can be used to write to any Node.js stream. - A global
console
instance configured to write toprocess.stdout
andprocess.stderr
. The globalconsole
can 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
- @JSType() @native() @JSImport( "console" , "Console" )
- See also
https://nodejs.org/api/console.html
- A
-
trait
ConsoleDirOptions extends Object
- Annotations
- @JSType()
-
trait
ConsoleOptions extends Object
- Annotations
- @JSType()
Value Members
-
object
Console extends Console
A global
Console
instance configured to write to io.scalajs.nodejs.process.Process.stdout and io.scalajs.nodejs.process.Process.stderr.A global
Console
instance configured to write to io.scalajs.nodejs.process.Process.stdout and io.scalajs.nodejs.process.Process.stderr.- Annotations
- @native() @JSGlobal( "console" )
- object ConsoleDirOptions
- object ConsoleOptions