Find the common ancestor of 2 or more paths on Windows or Unix
ISC License
this project is used by @recent-win-cli.
A node.js utility to make paths more consistent
join paths.
Easily calculate the relative path from file A to file B in Node.js project. Will calculate corre...
make the keys on an object path.sep agnostic.
A simple module to get the path with process.cwd()
Get the root of a posix or windows filepath.
Node's path builtin module exposed as dual ESM/CJS and browser-compatible out of the box.
Functional utils for FS paths
Given a path string, return a generator that walks up the path, emitting each dirname.
Normalize file path slashes to be unix-like forward slashes. Used by chokidar, anymatch, and many...
Why the fuck does the path module not have this?
Tests whether one path is inside another path
Attempt to resolve the absolute filepath to a file after verifying that it exists.
Computes the longest prefix string that is common to each path, excluding the base component