interface-forge - v2.5.0
    Preparing search index...

    Class FoodModule

    Module for generating food-related data.

    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.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    faker: Faker

    Methods

    • Generates a random dish adjective.

      Returns string

      faker.food.adjective() // 'crispy'
      

      9.0.0

    • Generates a random dish description.

      Returns 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'
      

      9.0.0

    • Generates a random dish name.

      Returns string

      faker.food.dish() // 'Tagine-Rubbed Venison Salad'
      

      9.0.0

    • Generates a random food's ethnic category.

      Returns string

      faker.food.ethnicCategory() // 'Italian'
      

      9.0.0

    • Generates a random fruit name.

      Returns string

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

      9.0.0

    • Generates a random ingredient name.

      Returns string

      faker.food.ingredient() // 'butter'
      

      9.0.0

    • Generates a random meat

      Returns string

      faker.food.meat() // 'venison'
      

      9.0.0

    • Generates a random spice name.

      Returns string

      faker.food.spice() // 'chilli'
      

      9.0.0

    • Generates a random vegetable name.

      Returns string

      faker.food.vegetable() // 'broccoli'
      

      9.0.0