name

// usage
chance.name()
chance.name({ middle: true })
chance.name({ middle_initial: true })
chance.name({ prefix: true })
chance.name({ nationality: 'en' })

Generate a random name

  chance.name();
  => 'Dafi Vatemi'

Optionally include the middle name

  chance.name({ middle: true });
  => 'Nelgatwu Powuku Heup'

Optionally include the middle initial

  chance.name({ middle_initial: true });
  => 'Ezme I Iza'

Optionally include the prefix

  chance.name({ prefix: true });
  => 'Doctor Suosat Am'

Optionally include the suffix

  chance.name({ suffix: true });
  => 'Fanny Baker Esq.'

Optionally specify a gender

  chance.name({ gender: 'male' });
  => "Patrick Copeland"

Optionally specify a nationality

  chance.name({ nationality: 'it' });
  => "Roberta Mazzetti"

Note, currently support for nationality is limited to: 'en', 'it'.