data-faking

Crates.iodata-faking
lib.rsdata-faking
version0.1.2
sourcesrc
created_at2024-03-23 04:16:49.861634
updated_at2024-05-28 16:55:25.551147
descriptionGenerate massive amounts of fake data
homepage
repositoryhttps://github.com/Data-Construct/faking
max_upload_size
id1183240
size2,084,666
Marko (clearfeld)

documentation

README

@dataconstruct/data-faking

Generate massive amounts of fake (but realistic) data for testing and development.

Docs Status Latest Version npm version

Try using our playground for your data gen needs, it supports code gen for much more than rust and javascript.

Docs (WIP)

Features

  • Defaults data types - numbers, lorem ipsum, bools, uuids
  • People - generate names, emails, jobs
  • Locations - generate addresses for north america (more coming soon), and coordinates
  • Various media - games, show, and books from across the globe
  • API data - generate data resembling real apis (ex. stripe)

Note: We try to generate realistic data. The generated names, addresses, emails, phone numbers, and/or other data might be coincidentally valid information. Please do not send any of your messages / calls to them from your test setup.

Usage Rust

cargo add data-faking
use data_faking as faking;

fn main() {
  println!("{}", faking::defaults::types::f64());
}

Usage Javascript / Typescript

npm i --save-dev data-faking
import * as faking from "data-faking";

console.log(faking.f64());

Randomness seed

If you want consistent results, you can set your own seed:

faking::utils::seeder::set_seed(2);
println!("{}", faking::defaults::types::f64());
faking.set_seed(BigInt(2));
console.log(faking.f64());

Unsupported Seeded Generation

The following data generators do not support seeded generation:

Commit count: 243

cargo fmt