Options
All
  • Public
  • Public/Protected
  • All
Menu

@cooklang/cooklang-ts

Index

Type aliases

Metadata: Record<string, string>

A recipes metadata

see

Cooklang Metadata

ShoppingList: Record<string, Item[]>

A shopping list consisting of categories and their items

see

Cooklang Shopping List

Step: (Ingredient | Cookware | Timer | Text)[]

A step consisting of multiple ingredients, cookware, timers, and text

Functions

  • Creates a URL for an image of the the supplied recipe.

    example
    getImageURL('Baked Potato', { extension: 'jpg', step: 2 });
    // returns "Baked Potato.2.jpg"
    see

    Cooklang Pictures Specification

    Parameters

    • name: string

      Name of the .cook file.

    • Optional options: ImageURLOptions

      The URL options.

    Returns string

    The image URL for the givin recipe and step.

Generated using TypeDoc