Fake-identity
fake-identity
Generate random identity objects including name, address, etc. This may be useful if you are trying to fill your application with random personal data.
What else?
- Generates a single random identity or multiple identities in an array.
- Includes first and last names, email address, phone number, street, city, state, zip code, date of birth, sex, company, and department.
- Email address is based off of name.
- First name matches sex.
- All names, streets, and cities are commonly found in the US.
- States are weighted on population, so more populous states appear more often.
- Zip codes are loosely based on state. Zip codes are weird so it's not perfect, though.
- Date of birth will be between 18 and 60.
- Usable in the browser or Node.js.
- No dependencies.
Install it: npm install fake-identity
Sample usage:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
|
GIF FTW!
This is pretty modular and sweet util, that needs some more configurability, thanks to Travis Horn for fake-identity.