Packages

p

io.scalajs

nodejs

package nodejs

nodejs package object

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. nodejs
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait Assert extends Object with IEventEmitter

    The assert module provides a simple set of assertion tests that can be used to test invariants.

    The assert module provides a simple set of assertion tests that can be used to test invariants. The module is intended for internal use by Node.js, but can be used in application code via require('assert'). However, assert is not a testing framework, and is not intended to be used as a general purpose assertion library.

    The API for the assert module is Locked. This means that there will be no additions or changes to any of the methods implemented and exposed by the module.

    Annotations
    @RawJSType() @native()
    Version

    7.4.0

  2. 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 as console.log(), console.error() and console.warn() that can be used to write to any Node.js stream.
    • A global console instance configured to write to stdout and stderr. Because this object is global, it can be used without calling require('console').
    Annotations
    @RawJSType() @native() @JSImport( "console" , "Console" )
    Version

    7.4.0

    See also

    https://nodejs.org/api/console.html

  3. class ConsoleDirOptions extends Object

    Console Dir Options

    Console Dir Options

    Annotations
    @RawJSType() @ScalaJSDefined()
  4. class Error extends scala.scalajs.js.Error

    Node.js Error Instance

    Node.js Error Instance

    Annotations
    @RawJSType() @native() @JSName( "Error" )
  5. type ExitCode = Int
  6. type FileDescriptor = Integer

    Represents a file descriptor

  7. trait Global extends Object

    In browsers, the top-level scope is the global scope.

    In browsers, the top-level scope is the global scope. That means that in browsers if you're in the global scope var something will define a global variable. In Node.js this is different. The top-level scope is not the global scope; var something inside an Node.js module will be local to that module.

    Annotations
    @RawJSType() @native()
  8. trait Module extends Object

    In each module, the module free variable is a reference to the object representing the current module.

    In each module, the module free variable is a reference to the object representing the current module. For convenience, module.exports is also accessible via the exports module-global. module isn't actually a global but rather local to each module.

    Annotations
    @RawJSType() @native()
    See also

    https://nodejs.org/api/modules.html#modules_the_module_object

  9. trait Process extends Object with IEventEmitter

    The process object is a global object and can be accessed from anywhere.

    The process object is a global object and can be accessed from anywhere. It is an instance of EventEmitter.

    Annotations
    @RawJSType() @native()
  10. class StringDecoder extends Object with IEventEmitter

    To use this module, do require('string_decoder').

    To use this module, do require('string_decoder'). StringDecoder decodes a buffer to a string. It is a simple interface to Buffer.toString() but provides additional support for utf8.

    Annotations
    @RawJSType() @native() @JSImport( "string_decoder" , "StringDecoder" )

Value Members

  1. val FatalError: ExitCode

    There was a fatal unrecoverable error in V8.

    There was a fatal unrecoverable error in V8. Typically a message will be printed to stderr with the prefix FATAL ERROR.

  2. val InternalExceptionHandlerRunTimeFailure: ExitCode

    There was an uncaught exception, and the internal fatal exception handler function itself threw an error while attempting to handle it.

    There was an uncaught exception, and the internal fatal exception handler function itself threw an error while attempting to handle it. This can happen, for example, if a 'uncaughtException' or domain.on('error') handler throws an error.

  3. val InternalJavaScriptEvaluationFailure: ExitCode

    The JavaScript source code internal in Node.js's bootstrapping process failed to return a function value when evaluated.

    The JavaScript source code internal in Node.js's bootstrapping process failed to return a function value when evaluated. This is extremely rare, and generally can only happen during development of Node.js itself.

  4. val InternalJavaScriptParseError: ExitCode

    The JavaScript source code internal in Node.js's bootstrapping process caused a parse error.

    The JavaScript source code internal in Node.js's bootstrapping process caused a parse error. This is extremely rare, and generally can only happen during development of Node.js itself.

  5. val InternalJavaScriptRunTimeFailure: ExitCode

    The JavaScript source code internal in Node.js's bootstrapping process threw an error when the bootstrapping function was called.

    The JavaScript source code internal in Node.js's bootstrapping process threw an error when the bootstrapping function was called. This is extremely rare, and generally can only happen during development of Node.js itself.

  6. val InvalidArgument: ExitCode

    Either an unknown option was specified, or an option requiring a value was provided without a value.

  7. val InvalidDebugArgument: ExitCode

    The --debug and/or --debug-brk options were set, but an invalid port number was chosen.

  8. val NonFunctionInternalExceptionHandler: ExitCode

    There was an uncaught exception, but the internal fatal exception handler function was somehow set to a non-function, and could not be called.

  9. val SignalExits: ExitCode

    If Node.js receives a fatal signal such as SIGKILL or SIGHUP, then its exit code will be 128 plus the value of the signal code.

    If Node.js receives a fatal signal such as SIGKILL or SIGHUP, then its exit code will be 128 plus the value of the signal code. This is a standard Unix practice, since exit codes are defined to be 7-bit integers, and signal exits set the high-order bit, and then contain the value of the signal code.

  10. val UncaughtFatalException: ExitCode

    There was an uncaught exception, and it was not handled by a domain or an 'uncaughtException' event handler.

  11. implicit def duration2Double(duration: FiniteDuration): Double

    Implicit conversation to translate durations into a double

    Implicit conversation to translate durations into a double

    duration

    the given duration

    returns

    the time in milliseconds as a double

  12. implicit def duration2Int(duration: FiniteDuration): Int

    Implicit conversation to translate durations into an integer

    Implicit conversation to translate durations into an integer

    duration

    the given duration

    returns

    the time in milliseconds as an integer

  13. object Assert extends Object with Assert

    Assert Singleton

    Assert Singleton

    Annotations
    @native() @JSImport( "assert" , JSImport.Namespace )
  14. object Error extends Object

    Error Singleton

    Error Singleton

    Annotations
    @native() @JSName( "Error" )
  15. object Module

    Module Companion

  16. object Process

    Process Object Companion

  17. object clearImmediate extends Object with ClearImmediate
    Annotations
    @native() @JSName( "clearImmediate" )
  18. object clearInterval extends Object with ClearInterval
    Annotations
    @native() @JSName( "clearInterval" )
  19. object clearTimeout extends Object with ClearTimeout
    Annotations
    @native() @JSName( "clearTimeout" )
  20. object console extends Console

    Used to print to stdout and stderr.

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

    Annotations
    @native() @JSName( "console" )
  21. object global extends Object with Global

    In browsers, the top-level scope is the global scope.

    In browsers, the top-level scope is the global scope. That means that in browsers if you're in the global scope var something will define a global variable. In Node.js this is different. The top-level scope is not the global scope; var something inside a Node.js module will be local to that module.

    Annotations
    @native() @JSName( "global" )
  22. object process extends Object with Process

    The process object.

    The process object. See the process object section.

    Annotations
    @native() @JSName( "process" )
  23. object ref extends Object with Ref
    Annotations
    @native() @JSName( "ref" )
  24. object setImmediate extends Object with SetImmediate
    Annotations
    @native() @JSName( "setImmediate" )
  25. object setInterval extends Object with SetInterval
    Annotations
    @native() @JSName( "setInterval" )
  26. object setTimeout extends Object with SetTimeout
    Annotations
    @native() @JSName( "setTimeout" )
  27. object unref extends Object with UnRef
    Annotations
    @native() @JSName( "unref" )

Inherited from AnyRef

Inherited from Any

Ungrouped