-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgenerate.js
22 lines (22 loc) · 1009 Bytes
/
generate.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module.exports = function(){
var faker = require("faker");
var _ = require("lodash");
return {
people: _.times(100, function (n) {
return {
id: n,
name: faker.name.findName(),
avatar: faker.internet.avatar(),
email: faker.internet.email(),
company: faker.company.companyName(),
address: {
zip: faker.address.zipCode(),
city: faker.address.city(),
streetName: faker.address.streetName(),
streetAddress: faker.address.streetAddress(),
state: faker.address.state()
}
}
})
}
}