Skip to content

Name

The Name transformer is used to generate a full name, last name or both of them combined.

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 name transformer will generated first- and last name separated by a whitespace.

Options

first-name

Type: boolean

Optional field for specicying wether or not a first name should be generated.

Default value: true

last-name

Type: boolean

Optional field for specicying wether or not a last name should be generated.

Default value: true

Examples

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

Result: 'Daphney Schimmel'


Specifying first-name
skifta.toml
[[table.columns]]
name = "column-example"
transformer = { name = { first-name = true } }

Result: 'Rae'


Specifying last-name
skifta.toml
[[table.columns]]
name = "column-example"
transformer = { name = { last-name = true } }

Result: 'Greenfelder'


Alias

Other they specifying transformer = "name" it’s also possible to specify

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

or

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

in order to generate first- or last name.