Animal package provides functionality to generate a fake animal value.
npm install @fakerjs/animal
Animal package provides functionality to generate a fake animal value.
npm
```
npm install @fakerjs/animal --save-dev
yarn
``
yarn add @fakerjs/animal -D
`js
import animal from '@fakerjs/animal';
animal();
//=> Snow Leopard
animal({type: 'zoo'});
//=> Snow Leopard
animal({type: 'zoo', locale: 'en_US'});
//=> Snow Leopard
// Allowed type: ocean, desert, grassland, forest, farm, pet, zoo
// Allowed locale: en_US
`
Run tests
```
npm run test