Last time I did a sample app to generate large amount of data using GenFu in C# so that I can be in .NET land but I wanted to also try out what it would be like to generate fake data in node.js using VSCode.

My investigation lead me to Faker.js, which would allow me to generate fake data in Node.js with Faker.js

Installation

To install faker.js you just need to use npm package manager

Usage

I will use a similar kind of example I had used previously to generate logs, below is the sample code I used to generate, it is a bit different but the idea is the same.

As you can see faker.js is also quite easy to use and generate fake data, although in GenFu we were able to generate a List of objects, I was not able to find such functionality in faker.js but one nice thing faker.js had was localization where it can generate data in different languages.

Faker.js also has quite a few api methods to generate data take a look at their github page for all the methods https://github.com/marak/Faker.js/.

Check out faker.js if you are using node.js and need to generate large amount of fake data.