An open API service indexing awesome lists of open source software.

https://github.com/faker-javascript/sport

Sport package provides functionality to generate a fake sport value.
https://github.com/faker-javascript/sport

Last synced: 2 months ago
JSON representation

Sport package provides functionality to generate a fake sport value.

Awesome Lists containing this project

README

        

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

```js
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)](https://github.com/faker-javascript/sport/blob/master/LICENSE)
Copyright (c) [Sergey Romanenko](https://github.com/Awilum)