@fakerjs/animal
TypeScript icon, indicating that this package has built-in type declarations

2.2.0 • Public • Published

Animal

Animal package provides functionality to generate a fake animal value.

Version node-current License

Install

npm

npm install @fakerjs/animal --save-dev

yarn

yarn add @fakerjs/animal -D

Usage

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

Tests

Run tests

npm run test

License

The MIT License (MIT) Copyright (c) Sergey Romanenko

Package Sidebar

Install

npm i @fakerjs/animal

Weekly Downloads

2,029

Version

2.2.0

License

MIT

Unpacked Size

18.3 kB

Total Files

12

Last publish

Collaborators

  • awilum