object Module extends Object with Module
Module Companion
- Annotations
- @native() @JSImport( "module" , JSImport.Namespace )
- Alphabetic
- By Inheritance
- Module
- Module
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
val
children: Array[Module]
The module objects required by this one.
The module objects required by this one.
- Definition Classes
- Module
module.children
Example: -
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
exports: Dictionary[Any]
The module.exports object is created by the Module system.
The module.exports object is created by the Module system. Sometimes this is not acceptable; many want their module to be an instance of some class. To do this, assign the desired export object to module.exports. Note that assigning the desired object to exports will simply rebind the local exports variable, which is probably not what you want to do.
- Definition Classes
- Module
module.exports
Example: -
val
filename: String
The fully resolved filename to the module.
The fully resolved filename to the module.
- Definition Classes
- Module
module.filename
Example: -
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
val
id: String
The identifier for the module.
The identifier for the module. Typically this is the fully resolved filename.
- Definition Classes
- Module
module.id
Example: -
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
val
loaded: Boolean
Whether or not the module is done loading, or is in the process of loading.
Whether or not the module is done loading, or is in the process of loading.
- Definition Classes
- Module
module.loaded
Example: -
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
val
parent: Any
The module that first required this one.
The module that first required this one.
- Definition Classes
- Module
module.parent
Example: -
val
paths: Array[String]
- Definition Classes
- Module
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
def
require[T <: Any](id: String): T
The module.require method provides a way to load a module as if require() was called from the original module.
The module.require method provides a way to load a module as if require() was called from the original module.
Note that in order to do this, you must get a reference to the module object. Since require() returns the module.exports, and the module is typically only available within a specific module's code, it must be explicitly exported in order to be used.
- Definition Classes
- Module
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
valueOf(): Any
- Definition Classes
- Object
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )