Skip to content
yutils
Example

Options

Fields: id(int), name(string), email(email), createdAt(date)
Count: 2

Output (JSON, 2 rows)

[
  { "id": 1, "name": "Liam", "email": "liam@example.com", "createdAt": "2025-09-12T08:43:00Z" },
  { "id": 2, "name": "Ada", "email": "ada@example.com", "createdAt": "2024-11-04T17:21:00Z" }
]

Note

Ids start at 1 and auto-increment. Names, emails, and dates use realistic random values. CSV / TSV outputs are available.

Usage / FAQ

When to use

  • Simulate API responses — generate a JSON array fast
  • Compare empty vs populated states in frontend components
  • Draft DB seed data without hand-crafting rows
  • Create test fixtures with realistic name / email / date values
  • Export as CSV to test Excel or BI tool imports

FAQ

Q.How random are the values?
A.Math.random based — fresh on every run. For deterministic output, set a seed in the options (when exposed).
Q.Can I generate Korean names or local addresses?
A.The default catalog is Latin-script. Localized fixtures need an external generator (e.g. `@faker-js/faker/locale/ko`).
Q.Are fields cross-consistent?
A.It's plain random, so cross-field semantics (e.g. an email derived from the name) are not enforced. For precise test data, use a dedicated generator.
Fun facts
  • Faker (faker.js) was created in 2010 by Marak Squires — a port of Ruby's Faker to JavaScript. It generates realistic placeholder data (names, addresses, emails, countries) one line at a time, and became the standard for seeding test data.

    faker-js — GitHub
  • The January 2022 'Marak incident' — Marak Squires deliberately published versions of his colors.js and faker.js that printed infinite ASCII (`LIBERTY LIBERTY LIBERTY` forever). It was his protest against large companies free-riding on uncompensated open source — and became a symbolic moment for npm supply-chain risk.

    The Verge — colors.js incident
  • After the incident, the community forked faker.js into the new `@faker-js/faker` package, isolating and archiving the original `faker` on npm. It became a textbook case for fork governance under 'a maintainer holds the library hostage' risk.

    fakerjs.dev — Announcement