Skip to content

Instantly share code, notes, and snippets.

@jkriss
Created January 11, 2019 21:29
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 jkriss/eab83f7696488f0f791c7291e5dac655 to your computer and use it in GitHub Desktop.
Save jkriss/eab83f7696488f0f791c7291e5dac655 to your computer and use it in GitHub Desktop.
Stable anonymized data
const faker = require('faker')
const adler32 = require('adler-32')
faker.seed(adler32.str('jesse@example.com'))
faker.internet.email() // always returns 'Otha_OConnell@yahoo.com'
faker.seed(adler32.str('jk@example.com'))
faker.internet.email() // always returns 'Deangelo_Powlowski89@yahoo.com'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment