FindRootOptions
Defined in: find-root.ts:8
Options for findRoot and findRootSync.
Properties
Section titled “Properties”fallback?
Section titled “fallback?”
optionalfallback?:"start"
Defined in: find-root.ts:17
"start" returns the start directory instead of undefined when no
marker is found anywhere up the tree — a soft-skip for callers that
treat the start dir as the root anyway. The returned path is always
absolute (a relative startDir is resolved against the working
directory), and symlink-resolved when realpath is on and the start
exists.
realpath?
Section titled “realpath?”
optionalrealpath?:boolean
Defined in: find-root.ts:24
Resolve symlinks of startDir before walking, so a symlinked start
dir walks the physical tree instead of the link’s own lexical
ancestors. A start path that doesn’t exist on disk counts as “not
found”. Any other failure resolving it (e.g. EACCES) is thrown.