Module

@native @JSType trait Module extends StObject
Companion
object
trait StObject
class Object
trait Any
class Object
trait Matchable
class Any
class ^
class ^
class ModuleCls
class ModuleCls

Value members

Concrete methods

def require(id: String): Any

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 toLocaleString(): String
Inherited from
Object
def valueOf(): Any
Inherited from
Object

Concrete fields

var children: Array[Module]
var exports: Any
var filename: String
var id: String
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

var loaded: Boolean
var parent: UndefOr[Module | Null]
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.

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