Skip to content

๐Ÿ’ณ Credit Card Transformer โ€‹

The Credit Card transformer produces a random credit card number with a length between 12 and 16 digits. It can be used to either replace existing values or mock new ones for testing or anonymization purposes.

๐Ÿ” Alternation โ€‹

This transformer does not mutate the existing row value โ€” it generates a new value regardless of input.

โœ… Valid Data Types โ€‹

  • String
  • Number

โš™๏ธ Options โ€‹

This transformer has no configurable options โ€” it will generate credit card numbers automatically.

๐Ÿงช Examples โ€‹

Example 1: Replacing a string input ("xyz") โ€‹

toml
[[table.columns]]
name = "credit_card"
transformer = "credit-card"
Input:  "xyz"
Output: "5596233915269233"

Example 2: Replacing a numeric input (1) โ€‹

toml
[[table.columns]]
name = "credit_card"
transformer = "credit-card"
Input:  1
Output: 376906467551085