Fakererer

buildVersionHex DocsLicenseIssuesDownloads

A pure Elixir library for generating fake data.

Fakererer is a rework of Fakerer (which itself was a fork of elixirs/faker). It uses Fakererer.* module names with the OTP application name :fakererer.

Credit

Fakererer stands on the shoulders of the original Faker library by Igor Kapkov (@igas) and contributors, and the Fakerer fork by Art Kay. All locale data, generators, and patterns originate from their work. The MIT license is preserved.

Quickstart

Requirements

Usage

See documentation and usage examples.

Internationalization (i18n)

Fakererer supports multiple locales with Vietnamese (vi) as a first-class citizen.

Supported Locales

Setting the Locale

# Start with a specific locale
Fakererer.start(:vi)
# Or set it at runtime
Fakererer.locale(:vi)

Vietnamese Locale

The Vietnamese locale (:vi) provides localized data for:

Fakererer.start(:vi)
Fakererer.Person.name()
# => "Nguyễn Văn Minh"
Fakererer.Address.city()
# => "Thành phố Hà Nội"
Fakererer.Food.dish()
# => "Phở"

Troubleshooting

Tools

Fakererer was designed as a lightweight library, that's why it can be easily used with other tools.

Templating

You can build templates for testing purposes with the Blacksmith project. See the Blacksmith readme for details.

Contributing

Contributions are welcome - see CONTRIBUTING.md.

License

Released under the MIT License.

Original copyright © Igor Kapkov.