@fakerjs/sport
v1.0.0
Published
Sport package provides functionality to generate a fake sport value.
Downloads
12,911
Readme
Install
npm
npm install @fakerjs/sport --save-dev
yarn
yarn add @fakerjs/sport -D
Usage
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
Tests
Run tests
npm run test
License
The MIT License (MIT) Copyright (c) Sergey Romanenko