const faker = require('faker'); const email = faker.internet.email(); console.log(email); // Output: example@example.com
const faker = require('faker'); const email = faker.internet.email('gmail.com'); console.log(email); // Output: example@gmail.com
const faker = require('faker'); const email = faker.internet.email('John Doe'); console.log(email); // Output: johndoe@example.comThe package library used in this example is "faker".