multiverser
v0.1.0
Published
some functions that could help you to create mocks and data with random values or from existing models
Downloads
10
Readme
Multiverser
multiverser is a random data generator that can create simple mocks using functions or data models. It's very useful for debuging, generating random data without having to create boring schemas.
Instalation
requirements:
- NodeJS
npm install multiverser
Usage
From Input
With multiverser methods you can provide any type of data and get a return based on the model you provided but with random values.
import { generateArrayFromInput } from "multieverser"
const model = {
name: "John Doe",
age: 25,
email: "[email protected]"
skills: ["communication", "resilience", "empathy"]
}
const arrayOfModels = generateArrayFromInput(model, 10);
console.log(arrayOfModels) // [{ name: "Lorem Ipsum", age: 37, ... }, {...}]
Author
Jonathan Assunção | [email protected]