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
function adjective(): string;
Examples
faker.food.adjective() // 'crispy'
Source
description
Generates a random dish description.
Available since v9.0.0
Returns: string
function description(): string;
Examples
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'
Source
dish
Generates a random dish name.
Available since v9.0.0
Returns: string
function dish(): string;
Examples
faker.food.dish() // 'Tagine-Rubbed Venison Salad'
Source
ethnicCategory
Generates a random food's ethnic category.
Available since v9.0.0
Returns: string
function ethnicCategory(): string;
Examples
faker.food.ethnicCategory() // 'Italian'
Source
fruit
Generates a random fruit name.
Available since v9.0.0
Returns: string
function fruit(): string;
Examples
faker.food.fruit() // 'lemon'
Source
ingredient
Generates a random ingredient name.
Available since v9.0.0
Returns: string
function ingredient(): string;
Examples
faker.food.ingredient() // 'butter'
Source
meat
Generates a random meat
Available since v9.0.0
Returns: string
function meat(): string;
Examples
faker.food.meat() // 'venison'
Source
spice
Generates a random spice name.
Available since v9.0.0
Returns: string
function spice(): string;
Examples
faker.food.spice() // 'chilli'
Source
vegetable
Generates a random vegetable name.
Available since v9.0.0
Returns: string
function vegetable(): string;
Examples
faker.food.vegetable() // 'broccoli'