const normalizeLineEndings = (str: string, normalized: string = '\r\n') =>
        str.replace(/\r?\n/g, normalized);
      
      Typescript language logo

      Normalize line endings

      Codiga's TypeScript Recipes

      Normalizes line endings in a string.

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.