Faker.js
It’s a wonderful node module to create fake/mock data.
Faker.js has its own API, and it’s huge.
It has a vast API for almost every use case with an excellent documentation
Let’s consider a test case where I want some a user to have following amount of fields:
name
email
website
address
bio
image/avatar
1 | const faker = require('faker') |
Faker.js Data
List of data that can generate faker.js:
address
commerce
company
date
finance
hacker
helpers
image
internet
lorem
name
phone
random
system
Use in Browser
1 | <script src='faker.js'></script> |