Mock Data Generator — TypeScript source
Generate deterministic fake data (names, emails, numbers, dates, booleans, UUIDs, pick-from-list) from a schema and a seed. Reproducible output.
This is the TypeScript implementation — the same logic the interactive tool runs, in a shareable, citable form.
// Public API barrel for the mockData lib.
// Keeps the tool's `from '../lib/mockData'` import stable across the split.
export { generateMock } from './mockData';
export type { FieldSpec, FieldType } from './mockData';
export { mulberry32 } from './rng';
Also available in 13 other languages
Every CosmoDev tool ships its pure logic in TypeScript (web) and Go (CLI), with authored implementations in a dozen-plus languages — the same contract, ported. Compare all languages side by side →