Skip to content

Email

The Email transformer is used to mask email adresses. This can be done by either changing the local part or the domain.

Alternation

This transformer will not mutate existing row value, it will generate a new value.

Valid Data Types
  • String

Default

Without specifying any options the email transformer will generate an valid email adress which contains of 8 char hash as domain and 8 char hash as local-part and top level domain com, example .

Options

domain

Optional field for specicying a static value for the domain part of the email.

Default value is a hash String.

local-part

Optional field for specicying a static value for the local part of the email.

Default value is a hash String.

Examples

Default
skifta.toml
[[table.columns]]
name = "column-example"
transformer = "email"

Result: '[email protected]'

Specifying both domain and local part
skifta.toml
[[table.columns]]
name = "column-example"
transformer = { email = { domain = "email.skifta.xyz", local-part = "info" } }

Result: '[email protected]'


Specifying only domain
skifta.toml
[[table.columns]]
name = "column-example"
transformer = { email = { domain = "skifta.xyz" } }

Result: '[email protected]'


Specifying only local part
skifta.toml
[[table.columns]]
name = "column-example"
transformer = { email = { local-part = "skifta" } }

Result: '[email protected]'