Skip to main content
Module

x/enzastdlib/vendor/@deno-std-fs.ts>format

enzastdlib is a set of TypeScript modules that follow a common design API philosophy aiming at sane defaults and ease-of-use targeting the Deno TypeScript runtime.
Latest
function format
import { format } from "https://deno.land/x/enzastdlib@v0.0.4/vendor/@deno-std-fs.ts";

Format the file to the targeted EOL.

Examples

Example 1

import { EOL, format } from "https://deno.land/std@0.224.0/fs/mod.ts";

const CRLFinput = "deno\r\nis not\r\nnode";

format(CRLFinput, EOL.LF); // output "deno\nis not\nnode"

Parameters

content: string
eol: EOL

Returns

string