Class: Personal

Personal

new Personal(opts)

Class for generate personal data, i.e names, surnames, age and another.
Parameters:
Name Type Description
opts object Options
Properties
Name Type Attributes Default Description
locale string <optional>
en Current locale

Methods

academicDegree()

Get a random academic degree.

age(opts)

Get a random integer value.
Parameters:
Name Type Description
opts object Options
Properties
Name Type Attributes Default Description
minimum number <optional>
16 Minimum value
maximum number <optional>
66 Maximum value

bitcoin()

Generate a random bitcoin address. Currently supported only two address formats that are most popular: 'P2PKH' and 'P2SH'

bloodType()

Get a random blood type.

childCount(opts)

Get a count of child's. Depend on previous generated age.
Parameters:
Name Type Description
opts object Options
Properties
Name Type Attributes Default Description
maxChildren number <optional>
5 Maximum count of child's.

cid()

Generate a random CID code.

creditCardExpirationDate(opts)

Generate a random expiration date for credit card.
Parameters:
Name Type Description
opts object Options
Properties
Name Type Attributes Default Description
minimum number <optional>
16 Date of issue.
maximum number <optional>
25 Maximum of expiration_date.

creditCardNumber(opts)

Generate a random credit card number.
Parameters:
Name Type Description
opts object Options
Properties
Name Type Attributes Default Description
cardType string <optional>
visa Issuing Network. Default is Visa.

cvv()

Generate a random card verification value (CVV).

email(opts)

Generate a random email.
Parameters:
Name Type Description
opts object Options
Properties
Name Type Attributes Default Description
gender <optional>
female Person gender;
domains string <optional>
Domains list; Default is gmail, yandex, yahoo, outlook, live;

favoriteMovie()

Get a random movie for current locale.

favoriteMusicGenre()

Get a random music genre.

fullName(opts) → {*}

Generate a random full name.
Parameters:
Name Type Description
opts object Options
Properties
Name Type Attributes Default Description
gender string <optional>
female
reversed boolean <optional>
false if true: surname/name else name/surname
Returns:
Type
*

gender(opts)

Get a random title of gender, code for the representation of human sexes is an international standard that defines a representation of human sexes through a language-neutral single-digit code or symbol of gender.
Parameters:
Name Type Description
opts object Options
Properties
Name Type Attributes Default Description
iso5218 boolean <optional>
false
symbol boolean <optional>
false

height(opts)

Generate a random height in M (Meter).
Parameters:
Name Type Description
opts object Options
Properties
Name Type Attributes Default Description
minimum number <optional>
1.5
maximum number <optional>
2

identifier(opts)

Generate a random identifier by mask. With this method you can generate any identifiers that you need. Simply select the mask that you need.
Parameters:
Name Type Description
opts object Options
Properties
Name Type Attributes Default Description
mask string <optional>
##-##/##

language()

Get a random language.

levelOfEnglish()

Get a random level of English.

name(opts)

Get a random name.
Parameters:
Name Type Description
opts object Options
Properties
Name Type Attributes Default Description
gender string <optional>
female Person gender;

nationality(opts)

Get a random nationality.
Parameters:
Name Type Description
opts object Options
Properties
Name Type Attributes Default Description
gender string <optional>
female Person gender;

occupation()

Get a random job.

paypal()

Generate a random PayPal account.

politicalViews()

Get a random political views.

sexualOrientation(opts)

Get a random (LOL) sexual orientation.
Parameters:
Name Type Description
opts object Options
Properties
Name Type Attributes Default Description
symbol boolean <optional>
false Unicode symbol.

socialMediaProfile(opts)

Generate profile for random social network.
Parameters:
Name Type Description
opts object Options
Properties
Name Type Attributes Default Description
gender string <optional>
female Gender of user.

surname(opts)

Get a random surname.
Parameters:
Name Type Description
opts object Options
Properties
Name Type Attributes Default Description
gender string <optional>
female Person gender;

telephone()

Generate a random phone number.

title(opts)

Get a random title (prefix/suffix) for name.
Parameters:
Name Type Description
opts object Options
Properties
Name Type Attributes Default Description
gender string <optional>
female Person gender;
titleType string <optional>
typical The type of title ('typical' and 'academic').

university()

Get a random university.

username(opts)

Get a random username with digits. Username generated from names (en) for all locales.
Parameters:
Name Type Description
opts object Options
Properties
Name Type Attributes Default Description
gender string <optional>
female Person gender;

viewOn()

Get a random view on.

weight(opts)

Generate a random weight in Kg.
Parameters:
Name Type Description
opts object Options
Properties
Name Type Attributes Default Description
minimum number <optional>
38
maximum number <optional>
90

workExperience(opts)

Get a work experience. Depend on previous generated age.
Parameters:
Name Type Description
opts object Options
Properties
Name Type Attributes Default Description
startFrom number <optional>
22 Age then person start to work.

worldView()

Get a random worldview.