Skip to content

strip() function

Home > strepl > strip

Removes all embedded ANSI terminal color format escape codes from a text segment.

Signature:

strip: (s: string) => string

Parameter

Type

Description

s

string

Input string containing color tags.

Returns:

string

Clean raw plaintext contents. *