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() // 'rich'
Source
description
Generates a random dish description.
Available since v9.0.0
Returns: string
function description(): string;
Examples
faker.food.description() // 'Fresh mixed greens tossed with mace-rubbed kangaroo, english spinach, and a light dressing.'
Source
dish
Generates a random dish name.
Available since v9.0.0
Returns: string
function dish(): string;
Examples
faker.food.dish() // 'Pork Sausage Roll'
Source
ethnicCategory
Generates a random food's ethnic category.
Available since v9.0.0
Returns: string
function ethnicCategory(): string;
Examples
faker.food.ethnicCategory() // 'Lebanese'
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() // 'mahlab'
Source
meat
Generates a random meat
Available since v9.0.0
Returns: string
function meat(): string;
Examples
faker.food.meat() // 'ostrich'
Source
spice
Generates a random spice name.
Available since v9.0.0
Returns: string
function spice(): string;
Examples
faker.food.spice() // 'korma'
Source
vegetable
Generates a random vegetable name.
Available since v9.0.0
Returns: string
function vegetable(): string;
Examples
faker.food.vegetable() // 'iceberg lettuce'