JS Utils Kit
    Preparing search index...

    Function toPosixPath

    • Converts a file system path to POSIX format.

      Parameters

      • p: string

        The path to convert

      Returns string

      The path using POSIX separators (/).

      • Replaces all backslashes (\) with forward slashes (/).
      • Does NOT perform full path normalization (e.g., resolving . or .. segments).
      toPosixPath('C:\\Users\\TenE\\project')
      // => 'C:/Users/TenE/project'
      toPosixPath('src\\utils\\file.ts')
      // => 'src/utils/file.ts'