Skip to content

Instantly share code, notes, and snippets.

@rictorres
Created April 11, 2016 00:20
Show Gist options
  • Save rictorres/317d69e15a12f5ea076e978541aff7b7 to your computer and use it in GitHub Desktop.
Save rictorres/317d69e15a12f5ea076e978541aff7b7 to your computer and use it in GitHub Desktop.
// 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