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

Method resolve

require/resolve.go:24–64  ·  view source on GitHub ↗

NodeJS module search algorithm described by https://nodejs.org/api/modules.html#modules_all_together

(modpath string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

RequireMethod · 0.95

Calls 6

getCurrentModulePathMethod · 0.95
resolvePathMethod · 0.95
loadAsFileOrDirectoryMethod · 0.95
loadNativeMethod · 0.95
loadNodeModulesMethod · 0.95
isFileOrDirectoryPathFunction · 0.85

Tested by

no test coverage detected