Created
April 11, 2016 00:20
-
-
Save rictorres/317d69e15a12f5ea076e978541aff7b7 to your computer and use it in GitHub Desktop.
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
// go to http://marak.com/faker.js/ | |
var employees = []; | |
for (var i = 1; i <= 50; i++) { | |
var firstName = faker.name.firstName(); | |
var lastName = faker.name.lastName(); | |
employees.push({ | |
id: i, | |
name: firstName + ' ' + lastName, | |
avatar: "", | |
username: firstName[0].toLowerCase() + lastName.toLowerCase(), | |
role: faker.name.jobTitle(), | |
phone: faker.phone.phoneNumber(), | |
city: faker.address.cityPrefix() + ' ' + faker.address.citySuffix(), | |
state: faker.address.state(), | |
country: 'US' | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment