Trait

io.scalajs.nodejs

Global

Related Doc: package nodejs

Permalink

trait Global extends Object

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()
Linear Supertypes
Object, Any, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Global
  2. Object
  3. Any
  4. AnyRef
  5. 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. def DTRACE_HTTP_CLIENT_REQUEST: Function

    Permalink
  5. def DTRACE_HTTP_CLIENT_RESPONSE: Function

    Permalink
  6. def DTRACE_HTTP_SERVER_REQUEST: Function

    Permalink
  7. def DTRACE_HTTP_SERVER_RESPONSE: Function

    Permalink
  8. def DTRACE_NET_SERVER_CONNECTION: Function

    Permalink
  9. def DTRACE_NET_STREAM_END: Function

    Permalink
  10. def __dirname: String

    Permalink

    The name of the directory that the currently executing script resides in.

  11. def __filename: String

    Permalink

    The filename of the code being executed.

    The filename of the code being executed. This is the resolved absolute path of this code file. For a main program this is not necessarily the same filename used in the command line. The value inside a module is the path to that module file.

  12. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  13. def clearImmediate: ClearImmediate

    Permalink
  14. def clearInterval: ClearInterval

    Permalink
  15. def clearTimeout: ClearTimeout

    Permalink
  16. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. def console: Console

    Permalink
  18. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  20. val exports: Object

    Permalink

    A reference to the module.exports that is shorter to type.

    A reference to the module.exports that is shorter to type. See module system documentation for details on when to use exports and when to use module.exports.

    exports isn't actually a global but rather local to each module.

  21. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  23. def hasOwnProperty(v: String): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  25. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    Object
  27. val module: Module

    Permalink

    A reference to the current module.

    A reference to the current module. In particular module.exports is used for defining what a module exports and makes available through require().

    module isn't actually a global but rather local to each module.

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

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

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

    Permalink
    Definition Classes
    AnyRef
  31. def process: Process

    Permalink
  32. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  33. def ref: Ref

    Permalink
  34. def setImmediate: SetImmediate

    Permalink
  35. def setInterval: SetInterval

    Permalink
  36. def setTimeout: SetTimeout

    Permalink
  37. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  38. def toLocaleString(): String

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

    Permalink
    Definition Classes
    AnyRef → Any
  40. def unref: UnRef

    Permalink
  41. def valueOf(): Any

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped