kaven-basic - v6.0.0
    Preparing search index...

    Function NormalizePathSep

    • Normalizes the path separator in a given path string to either "/" or "\".

      Replaces all occurrences of the opposite separator with the specified one, and collapses any duplicate separators into a single instance.

      Parameters

      • pathStr: string

        The input path string to normalize.

      • Optionalsep: "/" | "\\"

        The desired path separator ("/" or "\"). Defaults to "/".

      Returns string

      The normalized path string with consistent separators.

      4.0.0

      2022-08-31