Interface Food

Generator to generate food related entries.

interface Food {
    breakfast(): string;
    dessert(): string;
    dinner(): string;
    drink(): string;
    fruit(): string;
    lunch(): string;
    snack(): string;
    vegetable(): string;
}

Methods

  • First meal of the day, typically eaten in the morning.

    Returns string

    a random breakfast

    import { Faker } from "k6/x/faker"

    let faker = new Faker(11)

    export default function () {
    console.log(faker.food.breakfast())
    }

    Output (formatted as JSON value)

    "Ham omelet deluxe"
    
  • Sweet treat often enjoyed after a meal.

    Returns string

    a random dessert

    import { Faker } from "k6/x/faker"

    let faker = new Faker(11)

    export default function () {
    console.log(faker.food.dessert())
    }

    Output (formatted as JSON value)

    "Lindas bloodshot eyeballs"
    
  • Evening meal, typically the day's main and most substantial meal.

    Returns string

    a random dinner

    import { Faker } from "k6/x/faker"

    let faker = new Faker(11)

    export default function () {
    console.log(faker.food.dinner())
    }

    Output (formatted as JSON value)

    "Asian broccoli salad"
    
  • Liquid consumed for hydration, pleasure, or nutritional benefits.

    Returns string

    a random drink

    import { Faker } from "k6/x/faker"

    let faker = new Faker(11)

    export default function () {
    console.log(faker.food.drink())
    }

    Output (formatted as JSON value)

    "Water"
    
  • Edible plant part, typically sweet, enjoyed as a natural snack or dessert.

    Returns string

    a random fruit

    import { Faker } from "k6/x/faker"

    let faker = new Faker(11)

    export default function () {
    console.log(faker.food.fruit())
    }

    Output (formatted as JSON value)

    "Avocado"
    
  • Midday meal, often lighter than dinner, eaten around noon.

    Returns string

    a random lunch

    import { Faker } from "k6/x/faker"

    let faker = new Faker(11)

    export default function () {
    console.log(faker.food.lunch())
    }

    Output (formatted as JSON value)

    "Tortellini skewers"
    
  • Random snack.

    Returns string

    a random snack

    import { Faker } from "k6/x/faker"

    let faker = new Faker(11)

    export default function () {
    console.log(faker.food.snack())
    }

    Output (formatted as JSON value)

    "Hoisin marinated wing pieces"
    
  • Edible plant or part of a plant, often used in savory cooking or salads.

    Returns string

    a random vegetable

    import { Faker } from "k6/x/faker"

    let faker = new Faker(11)

    export default function () {
    console.log(faker.food.vegetable())
    }

    Output (formatted as JSON value)

    "Broccoli"