Skip to main content

name

firstName​

Description​

Method that generate a random localized first name. Some locales has specific first name for male and female

Parameters​

NameTypeDescription
gender<Number>Defines gendered names by 0 male and 1 female. Default value is random

Returns​

  • <String>

Usage​

  1. Without passing parameters

    1. code
    console.log(pure.name.firstName());
    1. result
    'Elliott'
  2. Describing that i want an first name for a female

    1. code
    console.log(pure.name.firstName(1));
    1. result
    'Tracy'

lastName​

Description​

Method that generate a random localized last name. Some locales (Like Russian one) has specific last name for male and female

Parameters​

NameTypeDescription
gender<Number>Defines gendered names by 0 male and 1 female. Default value is random

Returns​

  • <String>

Usage​

  1. Without passing parameters

    1. code
    console.log(pure.name.lastName());
    1. result
    'Schaden'
  2. Describing that i want an last name for a female

    1. code
    console.log(pure.name.lastName(1));
    1. result
    'Moore'

findName​

Description​

Method that generate a random localized complete name

Parameters​

NameTypeDescription
gender<Number>Defines gendered names by 0 male and 1 female. Default value is random

Returns​

  • <String>

Usage​

  1. Without passing parameters

    1. code
    console.log(pure.name.findName());
    1. result
    'Forrest Wintheiser'
  2. Describing that i want an complete name for a female

    1. code
    console.log(pure.name.findName(1));
    1. result
    'Lindsay Williamson'

jobTitle​

Description​

Method that generate random job title

Parameters​

NameTypeDescription
N/AN/AThis method doesn't receive any parameters

Returns​

  • <String>

Usage​

  1. Without passing parameters
    1. code
    console.log(pure.name.jobTitle());
    1. result
    'Corporate Communications Specialist'

gender​

Description​

Method that generate random gender

Parameters​

NameTypeDescription
N/AN/AThis method doesn't receive any parameters

Returns​

  • <String>

Usage​

  1. Without passing parameters
    1. code
    console.log(pure.name.gender());
    1. result
    'Androgynes'

prefix​

Description​

Method that generate random prefix

Parameters​

NameTypeDescription
gender<Number>Defines gendered names by 0 male and 1 female. Default value is random

Returns​

  • <String>

Usage​

  1. Without passing parameters

    1. code
    console.log(pure.name.prefix());
    1. result
    'Mr.'
  2. Describing that i want an prefix for a female

    1. code
    console.log(pure.name.prefix(1));
    1. result
    'Miss'

suffix​

Description​

Method that generate random suffix

Parameters​

NameTypeDescription
N/AN/AThis method doesn't receive any parameters

Returns​

  • <String>

Usage​

  1. Without passing parameters
    1. code
    console.log(pure.name.suffix());
    1. result
    'Jr.'

title​

Description​

Method that generate random title

Parameters​

NameTypeDescription
N/AN/AThis method doesn't receive any parameters

Returns​

  • <String>

Usage​

  1. Without passing parameters
    1. code
    console.log(pure.name.title());
    1. result
    'Legacy Security Consultant'

jobDescriptor​

Description​

Method that generate random job descriptor

Parameters​

NameTypeDescription
N/AN/AThis method doesn't receive any parameters

Returns​

  • <String>

Usage​

  1. Without passing parameters
    1. code
    console.log(pure.name.jobDescriptor());
    1. result
    'Future'

jobArea​

Description​

Method that generate random job area

Parameters​

NameTypeDescription
N/AN/AThis method doesn't receive any parameters

Returns​

  • <String>

Usage​

  1. Without passing parameters
    1. code
    console.log(pure.name.jobArea());
    1. result
    'Directives'

jobType​

Description​

Method that generate random job type

Parameters​

NameTypeDescription
N/AN/AThis method doesn't receive any parameters

Returns​

  • <String>

Usage​

  1. Without passing parameters
    1. code
    console.log(pure.name.jobType());
    1. result
    'Supervisor'