Skip to content

Food

Module for generating food-related data.

Overview

This module provides methods to generate various food-related information, such as items on a menu. To generate the name of a dish, use dish() and to generate a long description for a dish use description(). Note that these will not correspond with each other. You can also generate individual components of a dish such as spices, vegetables, meats, fruits, or generic ingredients.

adjective

Generates a random dish adjective.

Available since v9.0.0

Returns: string

ts
function adjective(): string;

Examples

ts
faker.food.adjective() // 'rich'

description

Generates a random dish description.

Available since v9.0.0

Returns: string

ts
function description(): string;

Examples

ts
faker.food.description() // 'Fresh mixed greens tossed with mace-rubbed kangaroo, english spinach, and a light dressing.'

dish

Generates a random dish name.

Available since v9.0.0

Returns: string

ts
function dish(): string;

Examples

ts
faker.food.dish() // 'Pork Sausage Roll'

ethnicCategory

Generates a random food's ethnic category.

Available since v9.0.0

Returns: string

ts
function ethnicCategory(): string;

Examples

ts
faker.food.ethnicCategory() // 'Lebanese'

fruit

Generates a random fruit name.

Available since v9.0.0

Returns: string

ts
function fruit(): string;

Examples

ts
faker.food.fruit() // 'lemon'

ingredient

Generates a random ingredient name.

Available since v9.0.0

Returns: string

ts
function ingredient(): string;

Examples

ts
faker.food.ingredient() // 'mahlab'

meat

Generates a random meat

Available since v9.0.0

Returns: string

ts
function meat(): string;

Examples

ts
faker.food.meat() // 'ostrich'

spice

Generates a random spice name.

Available since v9.0.0

Returns: string

ts
function spice(): string;

Examples

ts
faker.food.spice() // 'korma'

vegetable

Generates a random vegetable name.

Available since v9.0.0

Returns: string

ts
function vegetable(): string;

Examples

ts
faker.food.vegetable() // 'iceberg lettuce'

Released under the MIT License.