Skip to main content

Faker Data Generation

Faker.js is a test data generation library for JavaScript.

AnyWayData supports Faker commands directly via the faker source path, and also via a curated Domain abstraction.

For helper-specific usage, see Faker Helpers.

Most common Faker usage is mapped to curated domain.* methods. Use domain docs for domain-first schemas: Domain Test Data.

Tips Video

Faker Scope

  • Use this page for explicit faker usage, especially helpers.*.
  • For non-helper generation, prefer domain.* methods.
  • Use domain pages for curated aliases and domain metadata.
  • helpers.* is faker-only and is not part of the domain abstraction.

Faker API Reference

Direct Faker Examples

Sentence
helpers.mustache("Hello {{name}}", { name: "Ada" })
Sentence
helpers.fake("Hi, my name is {{person.firstName}} {{person.lastName}}!")
Direction
location.direction(abbreviated=true)

Note: non-helper faker calls may be superseded by domain mappings over time. Prefer the documented domain syntax when a domain equivalent exists.

See Domain Examples

Most practical examples and parameterized patterns are documented in:

See Also