Module

x/dax/src/deps.ts>fs.format

Cross-platform shell tools for Deno and Node.js inspired by zx.
Very Popular
Latest
function fs.format
import { fs } from "https://dotland.deno.dev/x/dax@0.39.2/src/deps.ts";
const { format } = fs;

Format the file to the targeted EOL.

Examples

Example 1

import { LF, format } from "https://deno.land/std@$STD_VERSION/fs/mod.ts";

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

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

Parameters

content: string
eol: EOL

Returns

string