Utilities for working with file system paths
default
Utilities for working with OS-specific file paths.
Return the last portion of a path.
Determines the common path from a set of paths for the given OS.
The character used to separate entries in the PATH environment variable.
On Windows, this is ;. On all other platforms, this is :.
Return the directory path of a path.
Return the extension of the path with leading period (".").
Converts a file URL to a path string.
Converts a glob string to a regular expression.
Verifies whether provided path is absolute.
Test whether the given string is a glob.
Joins a sequence of paths, then normalizes the resulting path.
Joins a sequence of globs, then normalizes the resulting glob.
Normalize the path, resolving '..' and '.' segments.
Normalizes a glob string.
Return an object containing the parsed components of the path.
Return the relative path from from to to based on current working
directory.
Resolves path segments into a path.
The character used to separate components of a file path.
On Windows, this is \. On all other platforms, this is /.
A regular expression that matches one or more path separators.
Converts a path string to a file URL.
Resolves path to a namespace path. This is a no-op on non-windows systems.
Return the last portion of a path.
Determines the common path from a set of paths for the given OS.
The character used to separate entries in the PATH environment variable.
On Windows, this is ;. On all other platforms, this is :.
The character used to separate components of a file path.
On Windows, this is \. On all other platforms, this is /.
A regular expression that matches one or more path separators.
Return the directory path of a path.
Return the extension of the path with leading period (".").
Converts a file URL to a path string.
Options for globToRegExp, joinGlobs,
normalizeGlob and expandGlob.
Converts a glob string to a regular expression.
Verifies whether provided path is absolute.
Test whether the given string is a glob.
Joins a sequence of paths, then normalizes the resulting path.
Joins a sequence of globs, then normalizes the resulting glob.
Normalize the path, resolving '..' and '.' segments.
Normalizes a glob string.
Return an object containing the parsed components of the path.
posix
Utilities for working with POSIX-formatted paths.
Return the last portion of a path.
Trailing directory separators are ignored, and optional suffix is removed.
Determines the common path from a set of paths for POSIX systems.
The character used to separate entries in the PATH environment variable.
Return the directory path of a path.
Return the extension of the path with leading period.
Generate a path from ParsedPath object.
Converts a file URL to a path string.
Convert a glob string to a regular expression.
Verifies whether provided path is absolute.
Join all given a sequence of paths,then normalizes the resulting path.
Like join(), but doesn't collapse "**/.." when globstar is true.
Normalize the path, resolving '..' and '.' segments.
Note that resolving these segments does not necessarily mean that all will be eliminated.
A '..' at the top-level will be preserved, and an empty path is canonically '.'.
Like normalize(), but doesn't collapse "**/.." when globstar is true.
Return a ParsedPath object of the path.
Return the relative path from from to to based on current working directory.
Resolves path segments into a path.
The character used to separate components of a file path.
A regular expression that matches one or more path separators.
Converts a path string to a file URL.
Converts a path to a namespaced path. This function returns the path as is on posix.
Return the last portion of a path.
Trailing directory separators are ignored, and optional suffix is removed.
Determines the common path from a set of paths for POSIX systems.
The character used to separate entries in the PATH environment variable.
The character used to separate components of a file path.
A regular expression that matches one or more path separators.
Return the directory path of a path.
Return the extension of the path with leading period.
Generate a path from ParsedPath object.
Converts a file URL to a path string.
Convert a glob string to a regular expression.
Verifies whether provided path is absolute.
Join all given a sequence of paths,then normalizes the resulting path.
Like join(), but doesn't collapse "**/.." when globstar is true.
Normalize the path, resolving '..' and '.' segments.
Note that resolving these segments does not necessarily mean that all will be eliminated.
A '..' at the top-level will be preserved, and an empty path is canonically '.'.
Like normalize(), but doesn't collapse "**/.." when globstar is true.
Return a ParsedPath object of the path.
Return the relative path from from to to based on current working directory.
Resolves path segments into a path.
Converts a path string to a file URL.
Converts a path to a namespaced path. This function returns the path as is on posix.
Return the relative path from from to to based on current working
directory.
Resolves path segments into a path.
Converts a path string to a file URL.
Resolves path to a namespace path. This is a no-op on non-windows systems.
windows
Utilities for working with Windows-specific paths.
Return the last portion of a path.
Trailing directory separators are ignored, and optional suffix is removed.
Determines the common path from a set of paths for Windows systems.
The character used to separate entries in the PATH environment variable.
Return the directory path of a path.
Return the extension of the path with leading period.
Generate a path from ParsedPath object.
Converts a file URL to a path string.
Convert a glob string to a regular expression.
Verifies whether provided path is absolute.
Join all given a sequence of paths,then normalizes the resulting path.
Like join(), but doesn't collapse "**/.." when globstar is true.
Normalize the path, resolving '..' and '.' segments.
Note that resolving these segments does not necessarily mean that all will be eliminated.
A '..' at the top-level will be preserved, and an empty path is canonically '.'.
Like normalize(), but doesn't collapse "**/.." when globstar is true.
Return a ParsedPath object of the path.
Return the relative path from from to to based on current working directory.
Resolves path segments into a path.
The character used to separate components of a file path.
A regular expression that matches one or more path separators.
Converts a path string to a file URL.
Resolves path to a namespace path
Return the last portion of a path.
Trailing directory separators are ignored, and optional suffix is removed.
Determines the common path from a set of paths for Windows systems.
The character used to separate entries in the PATH environment variable.
The character used to separate components of a file path.
A regular expression that matches one or more path separators.
Return the directory path of a path.
Return the extension of the path with leading period.
Generate a path from ParsedPath object.
Converts a file URL to a path string.
Convert a glob string to a regular expression.
Verifies whether provided path is absolute.
Join all given a sequence of paths,then normalizes the resulting path.
Like join(), but doesn't collapse "**/.." when globstar is true.
Normalize the path, resolving '..' and '.' segments.
Note that resolving these segments does not necessarily mean that all will be eliminated.
A '..' at the top-level will be preserved, and an empty path is canonically '.'.
Like normalize(), but doesn't collapse "**/.." when globstar is true.
Return a ParsedPath object of the path.
Return the relative path from from to to based on current working directory.
Resolves path segments into a path.
Converts a path string to a file URL.
Resolves path to a namespace path