Skip to main content
Module

x/lume/deps/fs.ts>format

🔥 Static site generator for Deno 🦕
Very Popular
Latest
function format
import { format } from "https://deno.land/x/lume@v2.1.4/deps/fs.ts";

Normalize the input string to the targeted EOL.

Examples

Example 1

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

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

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

Parameters

content: string

The input string to normalize.

eol: EOL

The EOL character(s) to normalize the input string to.

Returns

string

The input string normalized to the targeted EOL.