vtils

Home > utils > desensitize

desensitize() function

文本脱敏。

Signature:

export declare function desensitize(text: string, options?: DesensitizeOptions): string;

Parameters

Parameter Type Description
text string 待脱敏的文本
options DesensitizeOptions (Optional) 脱敏选项

Returns:

string