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

Function RegisterNativeModule

require/module.go:258–264  ·  view source on GitHub ↗

RegisterNativeModule registers a module that isn't loaded through a SourceLoader, but rather through a provided ModuleLoader. Typically, this will be a module implemented in Go (although theoretically it can be anything, depending on the ModuleLoader implementation). Such modules take precedence ove

(name string, loader ModuleLoader)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

TestRequireNativeModuleFunction · 0.85

Calls 1

filepathCleanFunction · 0.85

Tested by 1

TestRequireNativeModuleFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…