UNPKG

@poppinss/string

Version:

A collection of helpers to perform operations on/related to a string value

11 lines (10 loc) 279 B
/** * Wraps a string value to be on multiple lines after * a certain characters limit has been hit. */ export declare function wordWrap(value: string, options: { width: number; indent?: string; newLine?: string; escape?: (value: string) => string; }): string;