// retoor <retoor@molodetz.nl>
import "faker" for Faker
System.print("=== Faker Module Demo ===\n")
System.print("--- Person Information ---")
System.print("Name: %(Faker.name())")
System.print("First Name (Male): %(Faker.firstNameMale())")
System.print("First Name (Female): %(Faker.firstNameFemale())")
System.print("Username: %(Faker.username())")
System.print("Email: %(Faker.email())")
System.print("Phone: %(Faker.phoneNumber())")
System.print("Gender: %(Faker.gender())")
System.print("\n--- Address Information ---")
System.print("Street Address: %(Faker.streetAddress())")
System.print("City: %(Faker.city())")
System.print("State: %(Faker.state()) (%(Faker.stateAbbr()))")
System.print("ZIP Code: %(Faker.zipCode())")
System.print("Country: %(Faker.country()) (%(Faker.countryCode()))")
System.print("Full Address: %(Faker.address())")
System.print("Latitude: %(Faker.latitude())")
System.print("Longitude: %(Faker.longitude())")
System.print("\n--- Internet Data ---")
System.print("IPv4: %(Faker.ipv4())")
System.print("IPv6: %(Faker.ipv6())")
System.print("MAC Address: %(Faker.macAddress())")
System.print("Domain: %(Faker.domainName())")
System.print("URL: %(Faker.url())")
System.print("Password: %(Faker.password())")
System.print("UUID: %(Faker.uuid())")
System.print("User Agent: %(Faker.userAgent())")
System.print("\n--- Company and Job ---")
System.print("Company: %(Faker.company())")
System.print("Job Title: %(Faker.jobTitle())")
System.print("Job Descriptor: %(Faker.jobDescriptor())")
System.print("\n--- Product and Commerce ---")
System.print("Product: %(Faker.product())")
System.print("Category: %(Faker.productCategory())")
System.print("Price: $%(Faker.price())")
System.print("Currency: %(Faker.currency()) (%(Faker.currencySymbol()))")
System.print("Credit Card: %(Faker.creditCardType()) %(Faker.creditCardNumber())")
System.print("CVV: %(Faker.creditCardCVV())")
System.print("Expiry: %(Faker.creditCardExpiryDate())")
System.print("\n--- Date and Time ---")
System.print("Date: %(Faker.date())")
System.print("Past Date: %(Faker.pastDate())")
System.print("Future Date: %(Faker.futureDate())")
System.print("Date of Birth: %(Faker.dateOfBirth())")
System.print("Month: %(Faker.monthName())")
System.print("Day of Week: %(Faker.dayOfWeek())")
System.print("Time: %(Faker.time())")
System.print("\n--- Text Generation ---")
System.print("Word: %(Faker.word())")
System.print("Words: %(Faker.words(5).join(" "))")
System.print("Sentence: %(Faker.sentence())")
System.print("Paragraph: %(Faker.paragraph())")
System.print("Slug: %(Faker.slug())")
System.print("\n--- Colors ---")
System.print("Color Name: %(Faker.colorName())")
System.print("Hex Color: %(Faker.hexColor())")
System.print("RGB Color: %(Faker.rgbColor())")
System.print("\n--- File and Tech ---")
System.print("Filename: %(Faker.fileName())")
System.print("Extension: %(Faker.fileExtension())")
System.print("MIME Type: %(Faker.mimeType())")
System.print("Semver: %(Faker.semver())")
System.print("\n--- Banking ---")
System.print("IBAN: %(Faker.iban())")
System.print("Account Number: %(Faker.accountNumber())")
System.print("Routing Number: %(Faker.routingNumber())")
System.print("\n--- Cryptographic ---")
System.print("MD5: %(Faker.md5())")
System.print("SHA1: %(Faker.sha1())")
System.print("SHA256: %(Faker.sha256())")
System.print("\n--- Format Helpers ---")
System.print("Numerify ###-###-####: %(Faker.numerify("###-###-####"))")
System.print("Letterify ???-???: %(Faker.letterify("???-???"))")
System.print("Bothify ??-###: %(Faker.bothify("??-###"))")
System.print("\n--- Seeding for Reproducibility ---")
Faker.seed(42)
System.print("Seeded name 1: %(Faker.name())")
Faker.seed(42)
System.print("Seeded name 2: %(Faker.name())")
Faker.reset()
System.print("\n--- Profile Generation ---")
var profile = Faker.profile()
System.print("Profile:")
System.print(" Username: %(profile["username"])")
System.print(" Name: %(profile["name"])")
System.print(" Email: %(profile["email"])")
System.print(" Address: %(profile["address"])")
System.print(" Phone: %(profile["phone"])")
System.print(" Job: %(profile["job"])")
System.print(" Company: %(profile["company"])")
System.print(" Birthdate: %(profile["birthdate"])")
System.print("\n--- Bulk Generation Example ---")
System.print("Generating 5 users:")
for (i in 1..5) {
System.print(" %(i). %(Faker.name()) <%(Faker.email())>")
}
System.print("\n=== Demo Complete ===")