Mockuu is a simplified way to generate user data.
- π¦ +29 functions
- π Fully Typed
- π₯ Ready to use with JavaScript & Typescript
npm install mockuu
import { randomFullName, randomPassword } from 'mockuu'
const name = randomFullName()
const password = randomPassword({ size: 20, symbolsChars: true })
Module | Example | Output |
---|---|---|
Avatar | randomAvatar() |
https://i.pravatar.cc/200 |
Age | randomAge() |
40 |
Direction | randomDirection() |
Northeast |
City | randomCity() |
East Los Angeles |
Country | randomCountry() |
Chile |
Domain suffix | randomDomainSuffix() |
com |
randomEmail() |
Isaac_Hen@aol.org | |
Email provider | randomEmailProvider() |
|
First name | randomFirstName() |
Andre |
Full name | randomFullName() |
Lisa Hartmann |
Gender | randomGender() |
Woman |
Last name | randomLastName() |
Harrison |
Password | randomPassword() |
KKmD3sMIcg@vPg^KTZ9> |
Pronoun | randomPronoun() |
They/Them |
Username | randomUsername() |
Rosemarie_Chebet |
Zip code | randomZipCode() |
5786 |
Longitude | randomLongitude() |
154.0226 |
Latitude | randomLatitude() |
-30.9501 |
Hobby | randomHobby() |
Watching movies |
Job | randomJob() |
Designer |
Language | randomLanguage() |
Spanish |
Phone | randomPhone() |
+42 91 463 61 70 |
Boolean | randomBoolean() |
true |
Number | randomNumber() |
60000 |
Street name | randomStreetName() |
Franklin Avenue |
Role | randomRole() |
Admin |
Timezone | randomTimezone() |
Asia/Magadan |
Street address | randomStreetAddress() |
3000 Hewes |
State | randomState() |
Illinois |
Country Code | randomCountryCode() |
BT |