Package

io.scalajs

nodejs

Permalink

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

    Permalink

    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()
  2. class Console extends Object

    Permalink

    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" )
    See also

    https://nodejs.org/dist/latest-v8.x/docs/api/console.html

  3. class ConsoleDirOptions extends Object

    Permalink

    Console Dir Options

    Console Dir Options

    Annotations
    @ScalaJSDefined() @RawJSType()
  4. type Environment = Dictionary[String]

    Permalink
  5. class Error extends Object

    Permalink

    Creates a new Error object and sets the error.message property to the provided text message.

    Creates a new Error object and sets the error.message property to the provided text message. If an object is passed as message, the text message is generated by calling message.toString(). The error.stack property will represent the point in the code at which new Error() was called. Stack traces are dependent on V8's stack trace API. Stack traces extend only to either (a) the beginning of synchronous code execution, or (b) the number of frames given by the property Error.stackTraceLimit, whichever is smaller.

    Annotations
    @RawJSType() @native() @JSImport( "errors" , "Error" )
  6. type EventType = String

    Permalink
  7. type ExitCode = Int

    Permalink
  8. type FileDescriptor = Integer

    Permalink

    Represents a file descriptor

  9. type FileIOError = SystemError

    Permalink
  10. type FileMode = Integer

    Permalink
  11. type FileType = Int

    Permalink
  12. type Flags = |[String, Int]

    Permalink
  13. type FsCallback0 = Function1[FileIOError, Any]

    Permalink
  14. type FsCallback1[A] = Function2[FileIOError, A, Any]

    Permalink
  15. type FsCallback2[A, B] = Function3[FileIOError, A, B, Any]

    Permalink
  16. type FsCallback3[A, B, C] = Function4[FileIOError, A, B, C, Any]

    Permalink
  17. type GID = Int

    Permalink
  18. trait Global extends Object

    Permalink

    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()
  19. trait Module extends Object

    Permalink

    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

  20. trait Process extends Object with IEventEmitter

    Permalink

    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()
  21. class SystemError extends Error

    Permalink

    System Error

    System Error

    Annotations
    @RawJSType() @native() @JSImport( "errors" , "SystemError" )
  22. type UID = Int

    Permalink

Value Members

  1. object Assert extends Object with Assert

    Permalink

    Assert Singleton

    Assert Singleton

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

    Permalink

    Error Singleton

    Error Singleton

    Annotations
    @native() @JSGlobal()
  3. val FatalError: ExitCode

    Permalink

    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.

  4. val InternalExceptionHandlerRunTimeFailure: ExitCode

    Permalink

    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.

  5. val InternalJavaScriptEvaluationFailure: ExitCode

    Permalink

    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.

  6. val InternalJavaScriptParseError: ExitCode

    Permalink

    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.

  7. val InternalJavaScriptRunTimeFailure: ExitCode

    Permalink

    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.

  8. val InvalidArgument: ExitCode

    Permalink

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

  9. val InvalidDebugArgument: ExitCode

    Permalink

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

  10. object Module

    Permalink

    Module Companion

  11. val NonFunctionInternalExceptionHandler: ExitCode

    Permalink

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

  12. object Process

    Permalink

    Process Object Companion

  13. val SignalExits: ExitCode

    Permalink

    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.

  14. object SystemError extends Error

    Permalink

    System Error Singleton

    System Error Singleton

    Annotations
    @native() @JSImport( "errors" , JSImport.Namespace )
  15. val UncaughtFatalException: ExitCode

    Permalink

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

  16. def __dirname: String

    Permalink

    The directory name of the current module.

    The directory name of the current module. This the same as the path.dirname() of the __filename.

  17. def __filename: String

    Permalink

    The file name of the current module.

    The file name of the current module. This is the resolved absolute path of the current module file. For a main program this is not necessarily the same as the file name used in the command line. See __dirname for the directory name of the current module.

  18. package buffer

    Permalink

    buffer package object

  19. object clearImmediate extends Object with ClearImmediate

    Permalink
    Annotations
    @native() @JSGlobal( "clearImmediate" )
  20. object clearInterval extends Object with ClearInterval

    Permalink
    Annotations
    @native() @JSGlobal( "clearInterval" )
  21. object clearTimeout extends Object with ClearTimeout

    Permalink
    Annotations
    @native() @JSGlobal( "clearTimeout" )
  22. object console extends Console

    Permalink

    Used to print to stdout and stderr.

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

    Annotations
    @native() @JSGlobal( "console" )
  23. implicit def duration2Double(duration: FiniteDuration): Double

    Permalink

    Implicit conversion to translate durations into a double

    Implicit conversion to translate durations into a double

    duration

    the given duration

    returns

    the time in milliseconds as a double

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

    Permalink

    Implicit conversion to translate durations into an integer

    Implicit conversion to translate durations into an integer

    duration

    the given duration

    returns

    the time in milliseconds as an integer

  25. implicit def error2Exception(error: Error): Exception

    Permalink

    Implicit conversion to transform Node Errors to Exceptions

    Implicit conversion to transform Node Errors to Exceptions

    error

    the given Error

    returns

    the resulting Exception

  26. package events

    Permalink
  27. package fs

    Permalink
  28. object global extends Object with Global

    Permalink

    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() @JSGlobal( "global" )
  29. package http

    Permalink
  30. package net

    Permalink

    net package object

  31. object process extends Object with Process

    Permalink

    The process object.

    The process object. See the process object section.

    Annotations
    @native() @JSGlobal( "process" )
  32. package readline

    Permalink
  33. object ref extends Object with Ref

    Permalink
    Annotations
    @native() @JSGlobal( "ref" )
  34. package repl

    Permalink

    repl package object

  35. object setImmediate extends Object with SetImmediate

    Permalink
    Annotations
    @native() @JSGlobal( "setImmediate" )
  36. object setInterval extends Object with SetInterval

    Permalink
    Annotations
    @native() @JSGlobal( "setInterval" )
  37. object setTimeout extends Object with SetTimeout

    Permalink
    Annotations
    @native() @JSGlobal( "setTimeout" )
  38. package stream

    Permalink
  39. package timers

    Permalink
  40. package tty

    Permalink

    tty package object

  41. object unref extends Object with UnRef

    Permalink
    Annotations
    @native() @JSGlobal( "unref" )

Inherited from AnyRef

Inherited from Any

Ungrouped