grafana / xk6-faker

Random fake data generator for k6.
https://faker.x.k6.io
GNU Affero General Public License v3.0
59 stars 18 forks source link

Simplify API #14

Closed szkiba closed 8 months ago

szkiba commented 8 months ago

The xk6-faker API currently consists of quite a few functions. As a result, it is difficult to maintain.

It is advisable to simplify the API and treat the name of the fake data generator function as a parameter. This way, the API can consist of a single JavaScript function and the implementation is greatly simplified. In addition, the expansion with custom fake data generator functions will also be easier.