Last active
December 20, 2021 22:58
-
-
Save HonzaMac/bab86aa01d0506e9029a3166925add84 to your computer and use it in GitHub Desktop.
faker-object-user example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import faker from 'faker'; | |
const user = { | |
username: faker.name.findName(), | |
email: faker.internet.email(), | |
country: faker.address.country(), | |
department: faker.company.companyName(), | |
divisionName: faker.name.jobArea(), | |
}; | |
console.log(user) | |
/** | |
{ | |
username: 'Kim Altenwerth', | |
email: '[email protected]', | |
country: 'Zimbabwe', | |
department: 'McDermott, Swift and Hahn', | |
divisionName: 'Group' | |
} | |
**/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment