1.0.9 • Published 2 years ago

builder-faker v1.0.9

Weekly downloads
-
License
ISC
Repository
github
Last release
2 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

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago