@technobuddha > library > String > Operations
Type Alias: WordwrapOptions
ts
type WordwrapOptions = {
cut?: boolean;
separator?: string;
trailingSpaces?: boolean;
width?: number;
};Defined in: wordwrap.ts:9
Options for the wordwrap function
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
cut? | boolean | If true, don't limit breaks to word boundaries | src/wordwrap.ts:15 |
separator? | string | Line separator | src/wordwrap.ts:13 |
trailingSpaces? | boolean | If true, spaces are added to the end of each line to make all lines equal width, ignored if cut or preserveSpaces is true | src/wordwrap.ts:17 |
width? | number | The width to wrap to | src/wordwrap.ts:11 |