Polyman Documentation - v2.2.2
    Preparing search index...

    Function normalizeLineEndingsFromWinToUnix

    • Normalizes line endings in content from Polygon API. Converts Windows-style (\r\n) line endings to Unix-style (\n). Handles mixed/corrupted encodings by processing all variants.

      Parameters

      • content: string

        Content with potentially mixed line endings

      Returns string

      Content with normalized line endings