FakerElixir generates fake data for you
FakerElixir is an Elixir package that generates fake data for you. Whether you need to seed your database, create factories for your project, FakerElixir is here for you.
Some basic examples
FakerElixir.Helper.pick(["paris", "athens", "london"]) # "london"
FakerElixir.Internet.email(:popular) # "candelario@gmail.com"
FakerElixir.Internet.url(:safe) # "https://www.stefan-little.org/"
Locales
Other Faker packages don’t really let you custom the data of the locales. We do. Did I tell you, you can set the locale at the runtime ?
FakerElixir.set_locale(:en) # :ok
FakerElixir.Address.city # "Baltimore"
FakerElixir.set_locale(:fr) # :ok
FakerElixir.Address.city # "Issy-les-Moulineaux"
https://github.com/GesJeremie/faker-elixir
Thanks for reading, give me your feedbacks !
… and if you like it, maybe you could star it ?