Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace PiiEntityMask

Mask PII entities with the given masking character.

Properties

Optional isUnmaskedFromEnd

isUnmaskedFromEnd: undefined | false | true

Unmask from the end. By default, the whole entity is masked. This field works in concert with leaveCharactersUnmasked. For example, leaveCharactersUnmasked is 3 and isUnmaskedFromEnd is true, then if the entity is India the masked entity/result is **dia.

Optional leaveCharactersUnmasked

leaveCharactersUnmasked: undefined | number

Number of characters to leave unmasked. By default, the whole entity is masked. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.

Optional maskingCharacter

maskingCharacter: undefined | string

Masking character. By default, the character is an asterisk (*)

Const mode

mode: string = "MASK"

Methods

getDeserializedJsonObj

getJsonObj