@cstrlcs/sprout
v0.1.3
Published
Simple seeded fake data generator for TypeScript
Downloads
16
Maintainers
Readme
Sprout
Fake data generator with seed support. WIP.
Usage
import { sprout } from "sprout";
xsprout.person.name(); // "João"
sprout.person.fullName(); // "Maria Silva"
sprout.address.cityName(); // "São Paulo"
sprout.company.name(); // "Tech Solutions Ltda"
// Use with seed for consistent results
sprout(12345);
sprout.person.name(); // Always returns the same name
// Generate arrays
sprout.from(3, () => sprout.person.name()); // ["Ana", "Carlos", "Lucia"]Roadmap
More languages will be supported in the future.
Credits
Inspired by Faker.js and Falso.
Mulberry32 PRNG implementation from cprosche/mulberry32.
