Packages

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
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def DTRACE_HTTP_CLIENT_REQUEST: Function
  5. def DTRACE_HTTP_CLIENT_RESPONSE: Function
  6. def DTRACE_HTTP_SERVER_REQUEST: Function
  7. def DTRACE_HTTP_SERVER_RESPONSE: Function
  8. def DTRACE_NET_SERVER_CONNECTION: Function
  9. def DTRACE_NET_STREAM_END: Function
  10. def __dirname: String

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

  11. def __filename: String

    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
    Definition Classes
    Any
  13. def clearImmediate: ClearImmediate
  14. def clearInterval: ClearInterval
  15. def clearTimeout: ClearTimeout
  16. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. def console: Console
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  20. val exports: Object

    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
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  23. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  24. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  27. val module: Module

    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
    Definition Classes
    AnyRef
  29. final def notify(): Unit
    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  31. def process: Process
  32. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  33. def ref: Ref
  34. def setImmediate: SetImmediate
  35. def setInterval: SetInterval
  36. def setTimeout: SetTimeout
  37. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  38. def toLocaleString(): String
    Definition Classes
    Object
  39. def toString(): String
    Definition Classes
    AnyRef → Any
  40. def unref: UnRef
  41. def valueOf(): Any
    Definition Classes
    Object
  42. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped