shortenPosixPath
shortenPosixPath(
path):string
Defined in: packages/app-system/src/shell/shorten-posix-path.ts:11
Returns the path relative to the current working directory or to the home directory, whichever is shorter. If the path is the current working directory, returns “.”.
Parameters
Section titled “Parameters”string
The path to make relative.
Returns
Section titled “Returns”string
The relative path.