Interface: TruncateOptions
Defined in: string/types.ts:10
Options for truncating a string.
Properties
ellipsis?
readonlyoptionalellipsis:string
Defined in: string/types.ts:21
The string to append when truncated.
Default
'...'
length
readonlylength:number
Defined in: string/types.ts:14
The maximum length of the string (including ellipsis).
words?
readonlyoptionalwords:boolean
Defined in: string/types.ts:28
If true, truncate at word boundary to avoid cutting words.
Default
false