1.0.9 • Published 3 years ago

builder-faker v1.0.9

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

npm version

Builder-Faker

Based on faker , allow you to build array of object by passing only keys in values

Installation

npm i builder-faker

Import

import BuilderFaker from "builder-faker/builder";

How to use it?

const yourBuilder=new BuilderFaker(numberOfObjects,arrayOfKeys);
//get your array
yourBuilder.object;
//exemple
const builder=new BuilderFaker(5,["id","name","email","this arg doesn't exist","snake","firstName","fish"]);

console.log(builder.object);

The class will search some methods what matches with the keys passed. If the key doesn't exist, it will take a random word

Tips

yourBuilder.savedMethods

saveMethods return an array of each methods used for each key

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago