@fakerjs/gender
v2.3.1
Published
Gender package provides functionality to generate a fake gender value.
Downloads
12,493
Readme
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