@ac-essentials/misc-util
    Preparing search index...

    Function shortenPosixPath

    • 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

      • path: string

        The path to make relative.

      Returns string

      The relative path.