Last active
February 3, 2026 20:21
-
-
Save dacr/8d3c5db21314f5a3d44ad9c5bff53c5c to your computer and use it in GitHub Desktop.
Using java faker to generate good looking information / published by https://github.com/dacr/code-examples-manager #01265c26-1356-4635-a18f-68f857b36504/22021c6bd07749c2d229515f3d0abffc067c5874
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env scala-cli | |
| // summary : Using java faker to generate good looking information | |
| // keywords : scala, fakedata, data, @testable | |
| // publish : gist | |
| // authors : David Crosson | |
| // license : Apache License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) | |
| // id : 01265c26-1356-4635-a18f-68f857b36504 | |
| // created-on : 2021-03-15T10:08:27Z | |
| // managed-by : https://github.com/dacr/code-examples-manager | |
| // run-with : scala-cli $file | |
| // --------------------- | |
| //> using scala "3.6.4" | |
| //> using dep "com.github.javafaker:javafaker:1.0.2" | |
| // --------------------- | |
| val faker = new com.github.javafaker.Faker() | |
| val appName = faker.app.name | |
| val author = faker.name.name | |
| val email = faker.internet.emailAddress | |
| val company = faker.company.name | |
| val companyURL = faker.company.url | |
| val country = faker.country.name | |
| println(s"""'$appName' an application By $author / $email""") | |
| println(s"""'$company' / $country/ $companyURL""") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment