Skip to main content
Module

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

JavaScript parser and stringifier for YAML
Go to Latest
interface FoldOptions
import { type FoldOptions } from "https://deno.land/x/yaml@v2.1.1/src/stringify/foldFlowLines.ts";

Properties

optional
indentAtStart: number

Accounts for leading contents on the first line, defaulting to indent.length

optional
lineWidth: number

Default: 80

optional
minContentWidth: number

Allow highly indented lines to stretch the line width or indent content from the start.

Default: 20

optional
onFold: () => void

Called once if the text is folded

optional
onOverflow: () => void

Called once if any line of text exceeds lineWidth characters