import { format } from "https://deno.land/std@0.218.0/fs/mod.ts";
Format the file to the targeted EOL.
Examples
Example 1
Example 1
import { LF, format } from "https://deno.land/std@0.218.0/fs/mod.ts";
const CRLFinput = "deno\r\nis not\r\nnode";
format(CRLFinput, LF); // output "deno\nis not\nnode"