@fakerjs/animal

Animal package provides functionality to generate a fake animal value.

Usage no npm install needed!

<script type="module">
  import fakerjsAnimal from 'https://cdn.skypack.dev/@fakerjs/animal';
</script>

README

Animal

Animal package provides functionality to generate a fake animal value.

Version node-current License

Install

$ npm install --save @fakerjs/animal

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