danibram / mocker-data-generator

A simplified way to generate masive mock data based on a schema, you can use the awesome fake/random data generators like (FakerJs, ChanceJs, CasualJs and RandExpJs)
https://danibram.github.io/mocker-data-generator/
MIT License
426 stars 45 forks source link

Questions #100

Closed ab-pm closed 4 years ago

ab-pm commented 4 years ago

Hi! Before deciding to use this library, which seems well devised, I've got two questions:

danibram commented 4 years ago

Hi!

  1. This library, is a helper (wrapper) for chance, faker, randexp, casual so for the locale options check this libraries. If you read the documentation you can use as this:

{ faker: 'address.streetAddress', locale: 'zh_CN' } // Got 711 蔡 街

  1. I made like this, because I didnt want to change too much things if I want to include an asyncronous library in the future, and because I wanted.

You are free to contribute for the module if you want or you can make a fork and change if you want.

danibram commented 3 years ago

@ab-pm in v2.9.0 @10xjs added the method to build syncronously