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

[Feature Request] Add support for async functions (await) with .build() #80

Closed dmitrye closed 5 years ago

dmitrye commented 5 years ago

Currently it's using the callback approach but would be good for .build() to support an await when called inside of async functions.

dmitrye commented 5 years ago

Error on my part - reviewed it again and got it working with async/await.

danibram commented 5 years ago

No worries, I will add a specific example about it. Thanks for using mocker-data-generator!!