faker-javascript / animal

Animal package provides functionality to generate a fake animal value.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Animal package provides functionality to generate a fake animal value.

License:MIT License


Languages

Language:JavaScript 76.2%Language:TypeScript 23.8%