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

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

YAML parser and stringifier for JavaScript
Latest
interface FoldOptions
import { type FoldOptions } from "https://deno.land/x/yaml@v2.6.0/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