Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

JavaScript parser and stringifier for YAML
Go to Latest
function foldFlowLines
import { foldFlowLines } from "https://deno.land/x/yaml@v2.1.3/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]