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

Function DefaultPathResolver

require/module.go:165–171  ·  view source on GitHub ↗

DefaultPathResolver is used if none was set (see WithPathResolver). It converts the path using filepath.FromSlash(), then joins it with base and resolves symlinks on the resulting path. Note, it does not make the path absolute, so to match nodejs behaviour, the initial script name should be set to a

(base, path string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

resolvePathMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…