MCPcopy Create free account
hub / github.com/dop251/goja_nodejs / RegisterCoreModule

Function RegisterCoreModule

require/module.go:270–276  ·  view source on GitHub ↗

RegisterCoreModule registers a nodejs core module. If the name does not start with "node:", the module will also be loadable as "node: ". Hence, for "builtin" modules (such as buffer, console, etc.) the name should not include the "node:" prefix, but for prefix-only core modules (such as "node:

(name string, loader ModuleLoader)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 6

initFunction · 0.92
initFunction · 0.92
initFunction · 0.92
initFunction · 0.92
initFunction · 0.92
TestRegisterCoreModuleFunction · 0.85

Calls 1

filepathCleanFunction · 0.85

Tested by 1

TestRegisterCoreModuleFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…