Module

x/yaml/src/stringify/foldFlowLines.ts>foldFlowLines

YAML parser and stringifier for JavaScript
Latest
function foldFlowLines
import { foldFlowLines } from "https://dotland.deno.dev/x/yaml@v2.6.0/src/stringify/foldFlowLines.ts";

Tries to keep input at up to lineWidth characters, splitting only on spaces not followed by newlines or spaces unless mode is 'quoted'. Lines are terminated with \n and started with indent.

Parameters

text: string
indent: string
optional
mode: FoldMode = [UNSUPPORTED]
optional
unnamed 3: FoldOptions = [UNSUPPORTED]