nodeModuleMod

object nodeModuleMod extends Shortcut
trait Shortcut
class Object
trait Matchable
class Any

Type members

Classlikes

@JSImport("node:module", "Module") @native @JSType
class ModuleCls extends StObject with Module
@JSImport("node:module", "SourceMap") @native @JSType
class SourceMap extends SourceMap
@JSImport("node:module") @native @JSType
class ^() extends ^

Types

type _To = Object & Instantiable2[String, UndefOr[Module], Module]

Value members

Concrete methods

@JSImport("node:module", "Module") @native
def Module: Instantiable2[String, UndefOr[Module], Module]
@inline
def Module_=(x: Instantiable2[String, UndefOr[Module], Module]): Unit
override def _to: Object & Instantiable2[String, UndefOr[Module], Module]
Definition Classes
Shortcut
@JSImport("node:module", "builtinModules") @native
def builtinModules: Array[String]
@inline
def builtinModules_=(x: Array[String]): Unit
@inline
@inline
def createRequire(path: String): NodeRequire
@inline
def findSourceMap(path: String): SourceMap
@inline
def findSourceMap(path: String, error: Error): SourceMap
@inline
def runMain(): Unit
@inline

Updates all the live bindings for builtin ES Modules to match the properties of the CommonJS exports. It does not add or remove exported names from the ES Modules.

Updates all the live bindings for builtin ES Modules to match the properties of the CommonJS exports. It does not add or remove exported names from the ES Modules.

@inline
def wrap(code: String): String

Concrete fields

@JSImport("node:module") @native
val ^: Object & Instantiable2[String, UndefOr[Module], Module]