This library aims to ease the process of generating fake data into a newly genrated json file given a structure.
- Create a base.json in the location you want to create fake data
The key will be the name of the attribute where the fake data will be place. The value will be the name of the method you want to use, you can check existing methods in FakerJS API.
{
"userName": "firstName",
"userLastName": "lastName",
"favoriteCat": "cat",
"baseEmail": "email"
}
- Run the tool
npm init fake-data
or using npx
npx create-fake-data
The output should be a file in the current directory
{timestamp}_fakeData,json
See CONTRIBUTING.md.
Open source software licensed as MIT.