⚝
One Hat Cyber Team
⚝
Your IP:
172.22.0.1
Server IP:
151.80.20.34
Server:
Linux 794f04d97d5e 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64
Server Software:
Apache/2.4.62 (Debian)
PHP Version:
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
nodejs
/
yaml
/
dist
/
stringify
/
View File Name :
foldFlowLines.d.ts
export declare const FOLD_FLOW = "flow"; export declare const FOLD_BLOCK = "block"; export declare const FOLD_QUOTED = "quoted"; /** * `'block'` prevents more-indented lines from being folded; * `'quoted'` allows for `\` escapes, including escaped newlines */ export declare type FoldMode = 'flow' | 'block' | 'quoted'; export interface FoldOptions { /** * Accounts for leading contents on the first line, defaulting to * `indent.length` */ indentAtStart?: number; /** Default: `80` */ lineWidth?: number; /** * Allow highly indented lines to stretch the line width or indent content * from the start. * * Default: `20` */ minContentWidth?: number; /** Called once if the text is folded */ onFold?: () => void; /** Called once if any line of text exceeds lineWidth characters */ onOverflow?: () => void; } /** * 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`. */ export declare function foldFlowLines(text: string, indent: string, mode?: FoldMode, { indentAtStart, lineWidth, minContentWidth, onFold, onOverflow }?: FoldOptions): string;