Skip to content

Function: strMask() ​

strMask(str, character, index, length?): string

Defined in: src/formatters.ts:218

Mask a portion of a string with a repeated character.

Parameters ​

str ​

string

The source string

character ​

string

The character to use for masking

index ​

number

The starting index

length? ​

number

The number of characters to mask

Returns ​

string

The masked string

Documentation of 1.0.13 , built from cf61d3b on 1.0.13 by pipeline #2985011498 on 2026-10-21.