Faker is a popular library that generates fake (but reasonable) data that can be used for things such as:
- Unit Testing
- Performance Testing
- Building Demos
- Working without a completed backend
You can run Faker in the browser, or in Node.js. Faker v8.0 requires Node.js version 14 or above. Both ESM and CommonJS imports are available.
Install it as a Dev Dependency using your favorite package manager.
npm install @faker-js/faker --save-dev
pnpm add @faker-js/faker --save-dev
yarn add @faker-js/faker --dev