Sport package provides functionality to generate a fake sport value.
npm
npm install @fakerjs/sport --save-dev
yarn
yarn add @fakerjs/sport -D
import sport from '@fakerjs/sport';
sport({locale: 'en_US'}).unusual();
//=> Apple Racing
// Allowed locale: en_US
sport().unusual();
//=> Apple Racing
sport().ancientOlympics();
//=> Boxing
sport().summerOlympics();
//=> Archery
sport().summerParalympics();
//=> Archery
sport().winterOlympics();
//=> Biathlon
sport().winterParalympics();
//=> Snowboard
Run tests
npm run test
The MIT License (MIT) Copyright (c) Sergey Romanenko