Skip to content

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 “.”.

string

The path to make relative.

string

The relative path.