1.0.7 • Published 1 year ago

random-person-generator v1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Random Person Generator

This library allows you to generate random diverse fictional characters from around the globe.

import { generateRandomProfile, generateRandomWomanProfile, generateRandomManProfile } from './index.js';

const profile = generateRandomProfile();
console.log(profile);

const womanProfile = generateRandomWomanProfile();
console.log(womanProfile);

const manProfile = generateRandomManProfile();
console.log(manProfile);

Output

{
  first_name: 'Somchai',
  last_name: 'Srisai',
  race: 'Asian',
  country: 'Thailand',
  gender: 'man',
  hair_color: 'Black'
}
{
  first_name: 'Sandra',
  last_name: 'Kalniņš',
  race: 'Caucasian',
  country: 'Latvia',
  gender: 'woman',
  hair_color: 'Brown'
}
{
  first_name: 'Gabriel',
  last_name: 'Lima',
  race: 'Hispanic',
  country: 'Brazil',
  gender: 'man',
  hair_color: 'Brown'
}
1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago