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.
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.