ModuleCls

@JSImport("node:module", "Module") @native @JSType class ModuleCls extends StObject with Module
trait Module
trait StObject
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Constructors

def this(id: String)
def this(id: String, parent: Module)

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from
Object
def isPrototypeOf(v: Object): Boolean
Inherited from
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from
Object
def require(id: String): Any
Inherited from
Module
def toLocaleString(): String
Inherited from
Object
def valueOf(): Any
Inherited from
Object

Inherited fields

var children: Array[Module]
Inherited from
Module
var exports: Any
Inherited from
Module
var filename: String
Inherited from
Module
var id: String
Inherited from
Module
var isPreloading: Boolean

true if the module is running during the Node.js preload

true if the module is running during the Node.js preload

Inherited from
Module
var loaded: Boolean
Inherited from
Module
var parent: UndefOr[Module | Null]
Inherited from
Module
var path: String
Since

11.14.0 The directory name of the module. This is usually the same as the path.dirname() of the module.id.

Inherited from
Module
var paths: Array[String]
Inherited from
Module
@JSName("require")
Inherited from
Module