Skip to content

@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

ParameterTypeDescription
inputstringThe string to be processed.
optionsStripOptionsOptions to control what is stripped. see StripOptions.

Returns

string

The processed string with specified sequences removed.