Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Recipe

Index

Constructors

  • Creates a new recipe from the supplied Cooklang string

    see

    Cooklang Recipe

    Parameters

    • Optional source: string

      The Cooklang string to parse. If source is ommited, an empty recipe is created

    • Optional options: ParserOptions

      The options to pass to the parser

    Returns Recipe

Properties

cookwares: Cookware[] = []
ingredients: Ingredient[] = []
metadata: Metadata = {}
parser: Parser
shoppingList: ShoppingList = {}
steps: Step[] = []

Methods

  • toCooklang(): string
  • Generates a Cooklang string from the recipes metadata, steps, and shopping lists

    Returns string

    The generated Cooklang string

Generated using TypeDoc