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;
faker.food.adjective() // 'crispy'

description

Generates a random dish description.

Available since v9.0.0

Returns: string

ts
function description(): string;
faker.food.description() // 'An exquisite ostrich roast, infused with the essence of longan, slow-roasted to bring out its natural flavors and served with a side of creamy red cabbage'

dish

Generates a random dish name.

Available since v9.0.0

Returns: string

ts
function dish(): string;
faker.food.dish() // 'Tagine-Rubbed Venison Salad'

ethnicCategory

Generates a random food's ethnic category.

Available since v9.0.0

Returns: string

ts
function ethnicCategory(): string;
faker.food.ethnicCategory() // 'Italian'

fruit

Generates a random fruit name.

Available since v9.0.0

Returns: string

ts
function fruit(): string;
faker.food.fruit() // 'lemon'

ingredient

Generates a random ingredient name.

Available since v9.0.0

Returns: string

ts
function ingredient(): string;
faker.food.ingredient() // 'butter'

meat

Generates a random meat

Available since v9.0.0

Returns: string

ts
function meat(): string;
faker.food.meat() // 'venison'

spice

Generates a random spice name.

Available since v9.0.0

Returns: string

ts
function spice(): string;
faker.food.spice() // 'chilli'

vegetable

Generates a random vegetable name.

Available since v9.0.0

Returns: string

ts
function vegetable(): string;
faker.food.vegetable() // 'broccoli'

Released under the MIT License.