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("I found {{count}} instances.", { count: () => `${this.number.int()}` })
Sentence
helpers.fake("Hi, my name is {{person.firstName}} {{person.lastName}}!")
Direction
faker.location.cardinalDirection({ abbreviated: true })
Note: non-helper faker calls may be superseded by domain mappings over time.
See Domain Examples
Most practical examples and parameterized patterns are documented in: