DEV Community

Discussion on: How to generate mock data within seconds using Node.js to use in any application

Collapse
 
olavoasantos profile image
Olavo Amorim Santos

If you need to create reusable objects with faker, checkout node-factory. It helps a lot with mocks and tests while reducing code duplication.

npmjs.com/package/node-factory

Collapse
 
myogeshchavan97 profile image
Yogesh Chavan

Thanks for the suggestion. It really looks nice way to reduce code duplication 👍