Skip to content

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

ts
faker.animal.bear(): string
faker.animal.bear() // 'Asian black bear'

bird

Returns a random bird species.

Available since v5.5.0

Returns: string

ts
faker.animal.bird(): string
faker.animal.bird() // 'Buller's Shearwater'

cat

Returns a random cat breed.

Available since v5.5.0

Returns: string

ts
faker.animal.cat(): string
faker.animal.cat() // 'Singapura'

cetacean

Returns a random cetacean species.

Available since v5.5.0

Returns: string

ts
faker.animal.cetacean(): string
faker.animal.cetacean() // 'Spinner Dolphin'

cow

Returns a random cow species.

Available since v5.5.0

Returns: string

ts
faker.animal.cow(): string
faker.animal.cow() // 'Brava'

crocodilia

Returns a random crocodilian species.

Available since v5.5.0

Returns: string

ts
faker.animal.crocodilia(): string
faker.animal.crocodilia() // 'Philippine Crocodile'

dog

Returns a random dog breed.

Available since v5.5.0

Returns: string

ts
faker.animal.dog(): string
faker.animal.dog() // 'Irish Water Spaniel'

fish

Returns a random fish species.

Available since v5.5.0

Returns: string

ts
faker.animal.fish(): string
faker.animal.fish() // 'Mandarin fish'

horse

Returns a random horse breed.

Available since v5.5.0

Returns: string

ts
faker.animal.horse(): string
faker.animal.horse() // 'Swedish Warmblood'

insect

Returns a random insect species.

Available since v5.5.0

Returns: string

ts
faker.animal.insect(): string
faker.animal.insect() // 'Pyramid ant'

lion

Returns a random lion species.

Available since v5.5.0

Returns: string

ts
faker.animal.lion(): string
faker.animal.lion() // 'Northeast Congo Lion'

rabbit

Returns a random rabbit species.

Available since v5.5.0

Returns: string

ts
faker.animal.rabbit(): string
faker.animal.rabbit() // 'Florida White'

rodent

Returns a random rodent breed.

Available since v7.4.0

Returns: string

ts
faker.animal.rodent(): string
faker.animal.rodent() // 'Cuscomys ashanika'

snake

Returns a random snake species.

Available since v5.5.0

Returns: string

ts
faker.animal.snake(): string
faker.animal.snake() // 'Eyelash viper'

type

Returns a random animal type.

Available since v5.5.0

Returns: string

ts
faker.animal.type(): string
faker.animal.type() // 'crocodilia'

Released under the MIT License.