Skip to content

Person

This is the person module, it contains firstName, lastName, gender,

Gender

dunna.person.gender() returns a random gender male or female

dunna.person.gender(); // male
dunna.person.gender(); // female

FirstName

dunna.person.firstName() returns a random first name

dunna.person.firstName(); // John
dunna.person.firstName(); // Adam
ParameterTypeDescriptionDefault
genderstringSpecify the genderany

LastName

dunna.person.lastName() returns a random last name

dunna.person.lastName(); // Smith
dunna.person.lastName(); // Jones

FullName

dunna.person.fullName() returns a random full name

dunna.person.fullName(); // John Smith
dunna.person.fullName(); // Michael Williams
ParameterTypeDescriptionDefault
genderstringSpecify the genderany

Email

dunna.person.email() returns a random email

dunna.person.email(); // [email protected]
dunna.person.email(); // [email protected]
// Parameters
dunna.person.email({ gender: "male" });
dunna.person.email({ domain: "example.com" });
ParameterTypeDescriptionDefault
genderstringSpecify the genderany
domainstringSpecify the domainundefined

Person

dunna.person.person() returns a random person

dunna.person.person();
// Parameters
dunna.person.person({ gender: "female" });
ParameterTypeDescriptionDefault
genderstringSpecify the genderany
domainstringSpecify the domainundefined