Object

io.scalajs.nodejs

console

Related Doc: package nodejs

Permalink

object console extends Console

Used to print to stdout and stderr. See the console section.

Annotations
@native() @JSGlobal( "console" )
Linear Supertypes
Console, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. console
  2. Console
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def assert(value: Any, args: Any*): Unit

    Permalink

    A simple assertion test that verifies whether value is truthy.

    A simple assertion test that verifies whether value is truthy. If it is not, an AssertionError is thrown. If provided, the error message is formatted using util.format() and used as the error message.

    Definition Classes
    Console
    Example:
    1. console.assert(value[, message][, ...])

  6. def assert(value: Any, message: String, args: Any*): Unit

    Permalink

    A simple assertion test that verifies whether value is truthy.

    A simple assertion test that verifies whether value is truthy. If it is not, an AssertionError is thrown. If provided, the error message is formatted using util.format() and used as the error message.

    Definition Classes
    Console
    Example:
    1. console.assert(value[, message][, ...])

  7. def clear(): Unit

    Permalink

    When stdout is a TTY, calling console.clear() will attempt to clear the TTY.

    When stdout is a TTY, calling console.clear() will attempt to clear the TTY. When stdout is not a TTY, this method does nothing.

    Note: The specific operation of console.clear() can vary across operating systems and terminal types. For most Linux operating systems, console.clear() operates similarly to the clear shell command. On Windows, console.clear() will clear only the output in the current terminal viewport for the Node.js binary.

    Definition Classes
    Console
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def count(label: String = js.native): Unit

    Permalink

    Maintains an internal counter specific to label and outputs to stdout the number of times console.count() has been called with the given label.

    Maintains an internal counter specific to label and outputs to stdout the number of times console.count() has been called with the given label.

    label

    the display label for the counter. Defaults to 'default'.

    Definition Classes
    Console
  10. def countReset(label: String = js.native): Unit

    Permalink

    Resets the internal counter specific to label.

    Resets the internal counter specific to label.

    label

    the display label for the counter. Defaults to 'default'.

    Definition Classes
    Console
  11. def dir(obj: Any): Unit

    Permalink

    Uses util.inspect() on obj and prints the resulting string to stdout.

    Uses util.inspect() on obj and prints the resulting string to stdout. This function bypasses any custom inspect() function defined on obj

    Definition Classes
    Console
    Example:
    1. console.dir(obj[, options])

  12. def dir(obj: Any, options: ConsoleDirOptions): Unit

    Permalink

    Uses util.inspect() on obj and prints the resulting string to stdout.

    Uses util.inspect() on obj and prints the resulting string to stdout. This function bypasses any custom inspect() function defined on obj

    Definition Classes
    Console
    Example:
    1. console.dir(obj[, options])

  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  15. def error(data: Any, args: Any*): Unit

    Permalink

    Prints to stderr with newline.

    Prints to stderr with newline. Multiple arguments can be passed, with the first used as the primary message and all additional used as substitution values similar to printf(3) (the arguments are all passed to util.format()).

    data

    the given data arguments

    Definition Classes
    Console
    Example:
    1. console.error([data][, ...])

  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. def group(label: Any*): Unit

    Permalink

    Increases indentation of subsequent lines by two spaces.

    Increases indentation of subsequent lines by two spaces. If one or more labels are provided, those are printed first without the additional indentation.

    label

    the labels

    Definition Classes
    Console
  19. def groupCollapsed(): Unit

    Permalink

    An alias for console.group().

    An alias for console.group().

    Definition Classes
    Console
  20. def groupEnd(): Unit

    Permalink

    Decreases indentation of subsequent lines by two spaces.

    Decreases indentation of subsequent lines by two spaces.

    Definition Classes
    Console
  21. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  22. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  23. def info(data: Any, args: Any*): Unit

    Permalink

    The console.info() function is an alias for console.log().

    The console.info() function is an alias for console.log().

    Definition Classes
    Console
    Example:
    1. console.info([data][, ...])

  24. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  25. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  26. def log(data: Any, args: Any*): Unit

    Permalink

    Prints to stdout with newline.

    Prints to stdout with newline. Multiple arguments can be passed, with the first used as the primary message and all additional used as substitution values similar to printf(3) (the arguments are all passed to util.format()).

    data

    the given data arguments

    Definition Classes
    Console
    Example:
    1. console.log([data][, ...])

  27. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  32. def time(label: String): Unit

    Permalink

    Starts a timer that can be used to compute the duration of an operation.

    Starts a timer that can be used to compute the duration of an operation. Timers are identified by a unique label. Use the same label when you call console.timeEnd() to stop the timer and output the elapsed time in milliseconds to stdout. Timer durations are accurate to the sub-millisecond.

    Definition Classes
    Console
    Example:
    1. console.time(label)

  33. def timeEnd(label: String): Unit

    Permalink

    Stops a timer that was previously started by calling console.time() and prints the result to stdout

    Stops a timer that was previously started by calling console.time() and prints the result to stdout

    Definition Classes
    Console
    Example:
    1. console.timeEnd(label)

  34. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  35. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  36. def trace(message: String, args: Any*): Unit

    Permalink

    Prints to stderr the string 'Trace :', followed by the util.format() formatted message and stack trace to the current position in the code.

    Prints to stderr the string 'Trace :', followed by the util.format() formatted message and stack trace to the current position in the code.

    Definition Classes
    Console
    Example:
    1. console.trace(message[, ...])

  37. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  38. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. def warn(data: Any, args: Any*): Unit

    Permalink

    Prints to stdout with newline.

    Prints to stdout with newline. Multiple arguments can be passed, with the first used as the primary message and all additional used as substitution values similar to printf(3) (the arguments are all passed to util.format()).

    data

    the given data arguments

    Definition Classes
    Console
    Example:
    1. console.log([data][, ...])

Inherited from Console

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped