Module

x/yaml/src/stringify/foldFlowLines.ts

JavaScript parser and stringifier for YAML
Go to Latest
import * as mod from "https://dotland.deno.dev/x/yaml@v2.1.1/src/stringify/foldFlowLines.ts";

Functions

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.

Type Aliases

'block' prevents more-indented lines from being folded; 'quoted' allows for \ escapes, including escaped newlines