Skip to content

Function.sanitizeString

github-actions[bot] edited this page Jul 8, 2026 · 21 revisions

umt / sanitizeString

Function: sanitizeString()

sanitizeString(string_): string

Defined in: String/sanitizeString.ts:8

Sanitizes a string by removing non-printable characters. This is useful for cleaning up output from external commands before displaying it in the terminal. It allows printable ASCII characters (space to tilde), newlines, carriage returns, and tabs.

Parameters

string_

string

The string to sanitize.

Returns

string

The sanitized string.

API

Classes

Interfaces

Type Aliases

Variables

Functions

Clone this wiki locally