Skip to content

Instantly share code, notes, and snippets.

@MattMcFarland
Created March 15, 2017 00:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MattMcFarland/c69cce52b5e87ab9a4f59a5e64786177 to your computer and use it in GitHub Desktop.
Save MattMcFarland/c69cce52b5e87ab9a4f59a5e64786177 to your computer and use it in GitHub Desktop.
chance random user.js
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