TruncateOptions
import { TruncateOptions } from "jsr:@ende/text";interface
interface TruncateOptionsOptions for truncate.
Properties
suffix
suffix?: stringThe string used to indicate where truncation occurred.
Default: "…"
position
position?: "end" | "middle" | "start"Where to truncate.
"end":"very long te…""middle":"very l…g text"(useful for file paths)"start":"…ery long text"
Default: "end"