Static
resolveResolve a path that may be relative, absolute, or use home directory notation.
The path to resolve (supports ~/, relative, and absolute paths)
Optional
basePath: stringOptional base directory for relative path resolution
Resolved absolute path
Static
makeConvert an absolute path back to a relative path from a base directory
Static
updateStatic
updateStatic
normalizeNormalize path separators for cross-platform compatibility
Static
isCheck if a path is within a given directory
Static
generateGenerate a unique filename if a file already exists
Static
validateValidate that a path is safe for file operations
Static
getExtract directory depth from a path
Static
findFind common base directory for multiple paths
Static
toConvert Windows paths to Unix-style for markdown links
Static
getGet file extension with fallback handling
Static
isCheck if path represents a markdown file
Static
safejoinSafely join paths, handling edge cases
Static
isCheck if a path is a directory
Static
looksCheck if a path looks like a directory (ends with / or )
Static
resolveResolve destination path when target might be a directory If destination is a directory, preserves the source filename
Utility class for path manipulation and resolution operations.
Provides comprehensive path handling for markdown file operations including relative path updates, home directory resolution, and cross-platform compatibility.
Example
Path resolution
Example
Relative path updates for moved files