Profession package provides functionality to generate a fake profession value.
npm
npm install @fakerjs/profession --save-dev
yarn
yarn add @fakerjs/profession -D
import profession from '@fakerjs/profession';
profession();
//=> Software Engineer
profession({rank: true});
//=> Lead Software Engineer
profession({rank: true, locale: 'en_US'});
//=> Lead Software Engineer
// Allowed rank: true, false
// Allowed locale: en_US
Run tests
npm run test
The MIT License (MIT) Copyright (c) Sergey Romanenko