@technobuddha > library > String > Operations
Function: strip()
ts
function strip(input: string, options: StripOptions): string;Defined in: strip.ts:27
Removes unwanted sequences from the input string.
By default, this function strips ANSI escape codes from the input string.
Parameters
| Parameter | Type | Description |
|---|---|---|
input | string | The string to be processed. |
options | StripOptions | Options to control what is stripped. see StripOptions. |
Returns
string
The processed string with specified sequences removed.