Normalize the input string to the targeted EOL.
The input string to normalize.
The EOL character(s) to normalize the input string to.
The input string normalized to the targeted EOL.
import { LF, format } from "@std/fs/eol";const CRLFinput = "deno\r\nis not\r\nnode";format(CRLFinput, LF); // "deno\nis not\nnode" Copy
import { LF, format } from "@std/fs/eol";const CRLFinput = "deno\r\nis not\r\nnode";format(CRLFinput, LF); // "deno\nis not\nnode"
Normalize the input string to the targeted EOL.