Created
May 30, 2017 12:20
-
-
Save geiltonxavier/58a8219053e3b3e3903d0aae0c1e0c5d to your computer and use it in GitHub Desktop.
generate fake data
This file contains 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
module.exports = function(){ | |
var faker = require("faker"); | |
var _ = require("lodash"); | |
return{ | |
people: _.times(50, function(n){ | |
return{ | |
id:n, | |
name: faker.name.findName(), | |
avatar: faker.internet.avatar() | |
} | |
}) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment