Skip to content

Latest commit

 

History

History
58 lines (41 loc) · 1.43 KB

README.md

File metadata and controls

58 lines (41 loc) · 1.43 KB

Sport

Sport package provides functionality to generate a fake sport value.

Version node-current License

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