Packages

p

io.scalajs

nodejs

package nodejs

nodejs package object

Linear Supertypes
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

    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
    @JSType() @native()
  2. class Error extends Object

    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
    @JSType() @native() @JSGlobal()
  3. implicit final class ErrorExtensions extends AnyVal
  4. type EventType = String
  5. type FileDescriptor = Integer

    Represents a file descriptor

  6. type FileIOError = SystemError
  7. type FileMode = Int
  8. type FileType = Int
  9. type Flags = |[String, Int]
  10. type FsCallback0 = Function1[FileIOError, Any]
  11. type FsCallback1[A] = Function2[FileIOError, A, Any]
  12. type FsCallback2[A, B] = Function3[FileIOError, A, B, Any]
  13. type FsCallback3[A, B, C] = Function4[FileIOError, A, B, C, Any]
  14. type FsRecursiveCallback0 = Function2[FileIOError, Path, Any]
  15. type GID = Int
  16. type Handle = |[|[Function, HasHandle], HasFileDescriptor]
  17. trait HasFileDescriptor extends Object
    Annotations
    @JSType()
  18. trait HasHandle extends Object
    Annotations
    @JSType()
  19. 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
    @JSType() @native()
    See also

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

  20. sealed trait Require extends Object
    Annotations
    @JSType() @native()
  21. trait RequireResolver extends Object
    Annotations
    @JSType() @native()
  22. trait ResolveOptions extends Object
    Annotations
    @JSType()
  23. 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
    @JSType() @native() @JSImport( "string_decoder" , "StringDecoder" )
  24. trait SystemError extends Error

    System Error

    System Error

    Annotations
    @JSType() @native()
  25. type UID = Int

Value Members

  1. def __dirname: String

    The directory name of the current module.

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

  2. def __filename: String

    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.

  3. object Assert extends Object with Assert

    Assert Singleton

    Assert Singleton

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

    Error Singleton

    Error Singleton

    Annotations
    @native() @JSGlobal()
  5. object ErrorCodes
  6. object Require extends Object with Require
    Annotations
    @native() @JSGlobal( "require" )
  7. object ResolveOptions
  8. object SystemErrorCodes
  9. object clearImmediate extends Object with ClearImmediate
    Annotations
    @native() @JSGlobal( "clearImmediate" )
  10. object clearInterval extends Object with ClearInterval
    Annotations
    @native() @JSGlobal( "clearInterval" )
  11. object clearTimeout extends Object with ClearTimeout
    Annotations
    @native() @JSGlobal( "clearTimeout" )
  12. object moduleObject extends Object with Module
    Annotations
    @native() @JSGlobal( "module" )
  13. object queueMicrotask extends Function with Function1[Function, Unit]
    Annotations
    @native() @JSGlobal( "queueMicrotask" )
  14. object setImmediate extends Object with SetImmediate
    Annotations
    @native() @JSGlobal( "setImmediate" )
  15. object setInterval extends Object with SetInterval
    Annotations
    @native() @JSGlobal( "setInterval" )
  16. object setTimeout extends Object with SetTimeout
    Annotations
    @native() @JSGlobal( "setTimeout" )

Deprecated Value Members

  1. val Module: nodejs.module.Module.type
    Annotations
    @deprecated
    Deprecated

    (Since version v0.13.0) Use io.scalajs.nodejs.module.Module

Inherited from AnyRef

Inherited from Any

Ungrouped