Other Data Types
Additional fake data types including booleans, files, barcodes, and custom choices.
Boolean
bool / boolean
Generates a random boolean:
{"fake": ["bool"]}
{"fake": ["boolean"]}
Custom Choices
enum / pick / choice
Pick a random value from provided options:
{"fake": ["enum", "option1", "option2", "option3"]}
{"fake": ["pick", "option1", "option2", "option3"]}
{"fake": ["choice", "option1", "option2", "option3"]}
regex
Generate from simple alternation patterns:
{"fake": ["regex", "(A|B|C)"]}
Note: Only supports simple alternation patterns like
(A|B|C). Complex regex patterns are not supported.
File System
file_name
Generates a file name with extension:
{"fake": ["file_name"]}
file_extension
Generates a file extension:
{"fake": ["file_extension"]}
file_path
Generates a file path:
{"fake": ["file_path"]}
dir_path
Generates a directory path:
{"fake": ["dir_path"]}
Barcodes
isbn10
Generates an ISBN-10:
{"fake": ["isbn10"]}
isbn13
Generates an ISBN-13:
{"fake": ["isbn13"]}