Skip to content

Gender package provides functionality to generate a fake gender value.

License

Notifications You must be signed in to change notification settings

faker-javascript/gender

Repository files navigation

Gender

Gender package provides functionality to generate a fake gender value.

Version node-current License

Install

npm

npm install @fakerjs/gender --save-dev

yarn

yarn add @fakerjs/gender -D

Usage

import gender from '@fakerjs/gender';

gender();
//=> Female

gender({locale: 'ru_RU'});
//=> Женский

gender({extra: ['Gender'], locale: 'en_US'});
//=> Gender

// Allowed extra: valid array
// Allowed locale: en_US, ru_RU

Tests

Run tests

npm run test

License

The MIT License (MIT) Copyright (c) Sergey Romanenko