Animal
Module to generate animal related entries.
Overview
For a general type of animal (e.g. 'dog'
), use type()
.
Otherwise, use one of the more specific methods, such as cat()
for a specific breed of cat.
All values may be localized.
bear
Returns a random bear species.
Available since v5.5.0
Returns: string
function bear(): string;
Examples
faker.animal.bear() // 'Asian black bear'
Source
bird
Returns a random bird species.
Available since v5.5.0
Returns: string
function bird(): string;
Examples
faker.animal.bird() // 'Buller's Shearwater'
Source
cat
Returns a random cat breed.
Available since v5.5.0
Returns: string
function cat(): string;
Examples
faker.animal.cat() // 'Singapura'
Source
cetacean
Returns a random cetacean species.
Available since v5.5.0
Returns: string
function cetacean(): string;
Examples
faker.animal.cetacean() // 'Spinner Dolphin'
Source
cow
Returns a random cow species.
Available since v5.5.0
Returns: string
function cow(): string;
Examples
faker.animal.cow() // 'Brava'
Source
crocodilia
Returns a random crocodilian species.
Available since v5.5.0
Returns: string
function crocodilia(): string;
Examples
faker.animal.crocodilia() // 'Philippine Crocodile'
Source
dog
Returns a random dog breed.
Available since v5.5.0
Returns: string
function dog(): string;
Examples
faker.animal.dog() // 'Irish Water Spaniel'
Source
fish
Returns a random fish species.
Available since v5.5.0
Returns: string
function fish(): string;
Examples
faker.animal.fish() // 'Mandarin fish'
Source
horse
Returns a random horse breed.
Available since v5.5.0
Returns: string
function horse(): string;
Examples
faker.animal.horse() // 'Swedish Warmblood'
Source
insect
Returns a random insect species.
Available since v5.5.0
Returns: string
function insect(): string;
Examples
faker.animal.insect() // 'Pyramid ant'
Source
lion
Returns a random lion species.
Available since v5.5.0
Returns: string
function lion(): string;
Examples
faker.animal.lion() // 'Northeast Congo Lion'
Source
petName
Returns a random pet name.
Available since v9.2.0
Returns: string
function petName(): string;
Examples
faker.animal.petName() // 'Coco'
Source
rabbit
Returns a random rabbit species.
Available since v5.5.0
Returns: string
function rabbit(): string;
Examples
faker.animal.rabbit() // 'Florida White'
Source
rodent
Returns a random rodent breed.
Available since v7.4.0
Returns: string
function rodent(): string;
Examples
faker.animal.rodent() // 'Cuscomys ashanika'
Source
snake
Returns a random snake species.
Available since v5.5.0
Returns: string
function snake(): string;
Examples
faker.animal.snake() // 'Eyelash viper'
Source
type
Returns a random animal type.
Available since v5.5.0
Returns: string
function type(): string;
Examples
faker.animal.type() // 'crocodile'