Created
March 15, 2017 00:10
-
-
Save MattMcFarland/c69cce52b5e87ab9a4f59a5e64786177 to your computer and use it in GitHub Desktop.
chance random user.js
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
const Chance = require('chance') | |
const chance = new Chance() | |
chance.mixin({ | |
user: () => ({ | |
first: chance.first(), | |
last: chance.last(), | |
email: chance.email() | |
}) | |
}); | |
console.log('here is a random user!', chance.user()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment